ce058b2fd4
New Libraries: PolyCollection, Stacktrace. Updated Libraries: Asio, Context, Config, Core, Coroutine2, DLL, Fiber, Fusion, Geometry, Hash, Log, Phoenix, Predef, Program Options, Python, Smart Pointers, Test, TypeIndex, Unordered, Utility, Variant.
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
$NetBSD: patch-tools_build_src_engine_build.jam,v 1.1 2017/08/24 19:31:32 adam Exp $
|
|
|
|
Pass CFLAGS to the compiler.
|
|
|
|
--- tools/build/src/engine/build.jam.orig 2017-07-14 17:28:45.790581884 +0000
|
|
+++ tools/build/src/engine/build.jam
|
|
@@ -199,7 +199,7 @@ toolset como como : "-o " : -D
|
|
: -L$(--python-lib[1]) -l$(--python-lib[2]) ;
|
|
## Clang Linux 2.8+
|
|
toolset clang clang : "-o " : -D
|
|
- : -Wno-unused -Wno-format
|
|
+ : $(CFLAGS) -Wno-unused -Wno-format
|
|
[ opt --release : -Os ]
|
|
[ opt --debug : -g -O0 -fno-inline ]
|
|
[ opt --profile : -finline-functions -g ]
|
|
@@ -215,12 +215,12 @@ toolset darwin cc : "-o " : -D
|
|
: -L$(--python-lib[1]) -l$(--python-lib[2]) ;
|
|
## GCC 2.x, 3.x, 4.x
|
|
toolset gcc gcc : "-o " : -D
|
|
- : -pedantic -fno-strict-aliasing
|
|
+ : $(CFLAGS) -pedantic -fno-strict-aliasing
|
|
[ opt --release : [ opt --symbols : -g : -s ] -O3 ]
|
|
[ opt --debug : -g -O0 -fno-inline ]
|
|
[ opt --profile : -O3 -g -pg ]
|
|
-I$(--python-include) -I$(--extra-include) -Wno-long-long
|
|
- : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
|
|
+ : $(LDFLAGS) -L$(--python-lib[1]) -l$(--python-lib[2]) ;
|
|
## GCC 2.x, 3.x on CYGWIN but without cygwin1.dll
|
|
toolset gcc-nocygwin gcc : "-o " : -D
|
|
: -s -O3 -mno-cygwin
|