summaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build')
-rw-r--r--tools/build/src/engine/build.jam1
-rwxr-xr-xtools/build/src/engine/build.sh3
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/src/engine/build.jam b/tools/build/src/engine/build.jam
index e711c08149..15b5d489c6 100644
--- a/tools/build/src/engine/build.jam
+++ b/tools/build/src/engine/build.jam
@@ -216,6 +216,7 @@ toolset darwin cc : "-o " : -D
## GCC 2.x, 3.x, 4.x
toolset gcc gcc : "-o " : -D
: -pedantic -fno-strict-aliasing
+ : $(CFLAGS)
[ opt --release : [ opt --symbols : -g : -s ] -O3 ]
[ opt --debug : -g -O0 -fno-inline ]
[ opt --profile : -O3 -g -pg ]
diff --git a/tools/build/src/engine/build.sh b/tools/build/src/engine/build.sh
index 1d0dcc892b..10452e03e9 100755
--- a/tools/build/src/engine/build.sh
+++ b/tools/build/src/engine/build.sh
@@ -151,6 +151,9 @@ case $BOOST_JAM_TOOLSET in
*)
BOOST_JAM_CC=gcc
esac
+ BOOST_JAM_OPT_JAM="$BOOST_JAM_OPT_JAM $CFLAGS $LIBS"
+ BOOST_JAM_OPT_MKJAMBASE="$BOOST_JAM_OPT_MKJAMBASE $CFLAGS $LIBS"
+ BOOST_JAM_OPT_YYACC="$BOOST_JAM_OPT_YYACC $CFLAGS $LIBS"
;;
darwin)