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