tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.66.0-bjam-build-flags.patch

f4a353
--- boost_1_66_0/tools/build/src/engine/build.jam~	2018-02-07 21:36:14.552201421 +0000
f4a353
+++ boost_1_66_0/tools/build/src/engine/build.jam	2018-02-07 21:36:29.014173266 +0000
f4a353
@@ -4,7 +4,7 @@
f4a353
 #~ http://www.boost.org/LICENSE_1_0.txt)
f4a353
 
f4a353
 # Clean env vars of any "extra" empty values.
f4a353
-for local v in ARGV CC CFLAGS LIBS
f4a353
+for local v in ARGV CC CFLAGS LIBS RPM_OPT_FLAGS RPM_LD_FLAGS
f4a353
 {
f4a353
     local values ;
f4a353
     for local x in $($(v))
f4a353
@@ -215,12 +215,12 @@
f4a353
     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
f4a353
 ## GCC 2.x, 3.x, 4.x
f4a353
 toolset gcc gcc : "-o " : -D
f4a353
-    : -pedantic -fno-strict-aliasing
f4a353
+    : -pedantic -fno-strict-aliasing $(RPM_OPT_FLAGS)
f4a353
     [ opt --release : [ opt --symbols : -g : -s ] -O3 ]
f4a353
     [ opt --debug : -g -O0 -fno-inline ]
f4a353
     [ opt --profile : -O3 -g -pg ]
f4a353
     -I$(--python-include) -I$(--extra-include) -Wno-long-long
f4a353
-    : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
f4a353
+    : -L$(--python-lib[1]) -l$(--python-lib[2]) $(RPM_LD_FLAGS) ;
f4a353
 ## GCC 2.x, 3.x on CYGWIN but without cygwin1.dll
f4a353
 toolset gcc-nocygwin gcc : "-o " : -D
f4a353
     : -s -O3 -mno-cygwin