Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <kenlm@kheafield.com>2011-11-28 13:35:46 +0400
committerKenneth Heafield <kenlm@kheafield.com>2011-11-28 13:35:46 +0400
commitab9976b719f8db8a8d2022fe90fb9be8de006954 (patch)
tree4aaa6c5f430df8f9f74b1ecc127d20c32bd8d14d /Jamroot
parentf564876e5e5b41ad5183e82cb343cb127ead62b2 (diff)
Respect CXXFLAGS, CFLAGS, LDFLAGS
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot9
1 files changed, 9 insertions, 0 deletions
diff --git a/Jamroot b/Jamroot
index d5e88560a..a62296101 100644
--- a/Jamroot
+++ b/Jamroot
@@ -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).