ff5609
--- boost_1_66_0/tools/build/src/engine/build.jam~	2017-12-13 23:56:50.000000000 +0000
ff5609
+++ boost_1_66_0/tools/build/src/engine/build.jam	2022-06-22 15:14:26.976935832 +0100
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))
ff5609
@@ -54,7 +54,7 @@
ff5609
    ! ( --debug in $(ARGV) ) &&
ff5609
    ! ( --profile in $(ARGV) )
ff5609
 {
ff5609
-    ARGV += --release ;
ff5609
+    # ARGV += --release ;
ff5609
 }
ff5609
 
ff5609
 # Enable, and configure, Python hooks.
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