diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:11:33 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:11:33 -0700 |
commit | 1855c45692d0748c15badb525ecc2e88277ea61d (patch) | |
tree | a2e474f6a6ff6e72065f9c1c3554afd4679a8fe8 | |
parent | 2e1271cfc7687a043df762cb2b1bfa7fca0d783d (diff) | |
download | boost-jam-1855c45692d0748c15badb525ecc2e88277ea61d.tar.gz boost-jam-1855c45692d0748c15badb525ecc2e88277ea61d.tar.bz2 boost-jam-1855c45692d0748c15badb525ecc2e88277ea61d.zip |
jam0 use passed cflags
-rw-r--r-- | build.jam | 2 | ||||
-rwxr-xr-x | build.sh | 8 |
2 files changed, 7 insertions, 3 deletions
@@ -212,7 +212,7 @@ toolset darwin cc : "-o " : -D ## GCC 2.x, 3.x, 4.x toolset gcc gcc : "-o " : -D : -pedantic -fno-strict-aliasing - [ opt --release : [ opt --symbols : -g : -s ] -O3 ] + [ opt --release : [ opt --symbols : -g : -s ] $(CFLAGS) ] [ opt --debug : -g -O0 -fno-inline ] -I$(--python-include) -I$(--extra-include) -Wno-long-long : -L$(--python-lib[1]) -l$(--python-lib[2]) ; @@ -12,7 +12,7 @@ BOOST_JAM_TOOLSET= echo_run () { echo "$@" - $@ + eval "$@" r=$? if test $r -ne 0 ; then exit $r @@ -299,5 +299,9 @@ if test -x "./bootstrap/jam0" ; then if test "${BJAM_UPDATE}" != "update" ; then echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" clean fi - echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@" + if test -z "$BOOST_JAM_TOOLSET_ROOT"; then + echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "$@" + else + echo_run ./bootstrap/jam0 -f build.jam --toolset=$BOOST_JAM_TOOLSET "--toolset-root=$BOOST_JAM_TOOLSET_ROOT" "$@" + fi fi |