diff options
author | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-28 13:35:46 +0400 |
---|---|---|
committer | Kenneth Heafield <kenlm@kheafield.com> | 2011-11-28 13:35:46 +0400 |
commit | bf9528403da696fba92db7207ef0f8e3ad368924 (patch) | |
tree | 4aaa6c5f430df8f9f74b1ecc127d20c32bd8d14d /Jamroot | |
parent | 58054214b7cb89a769d91a3cfe4f5cde75983206 (diff) |
Respect CXXFLAGS, CFLAGS, LDFLAGS
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -140,6 +140,12 @@ if [ test_flags "-lSegfault" ] { trace = [ option.get "notrace" : <define>TRACE_ENABLE=1 ] ; boost-pool = [ option.get "enable-boost-pool" : : "<define>USE_BOOST_POOL" ] ; +import os ; + +cxxflags = [ os.environ "CXXFLAGS" ] ; +cflags = [ os.environ "CFLAGS" ] ; +ldflags = [ os.environ "LDFLAGS" ] ; + project : default-build <threading>multi <warnings>on @@ -155,6 +161,9 @@ project : requirements $(segfault) $(trace) $(boost-pool) + <cxxflags>$(cxxflags) + <cflags>$(cflags) + <linkflags>$(ldflags) ; #Add directories here if you want their incidental targets too (i.e. tests). |