boost/boost-use_rpm_optflags.patch

39 lines
1.5 KiB
Diff
Raw Normal View History

--- tools/build/v2/tools/builtin.jam
+++ tools/build/v2/tools/builtin.jam
@@ -91,7 +91,7 @@
feature runtime-debugging : on off : propagated ;
-feature optimization : off speed space : propagated ;
+feature optimization : off speed space rpm : propagated ;
feature profiling : off on : propagated ;
feature inlining : off on full : propagated ;
@@ -102,7 +102,7 @@
feature asynch-exceptions : off on : propagated ;
# Whether all extern "C" functions are considered nothrow by default
feature extern-c-nothrow : off on : propagated ;
-feature debug-symbols : on off : propagated ;
+feature debug-symbols : on off rpm : propagated ;
feature define : : free ;
feature undef : : free ;
feature "include" : : free path ; #order-sensitive ;
@@ -327,6 +327,7 @@
variant release : <optimization>speed <debug-symbols>off <inlining>full
<runtime-debugging>off <define>NDEBUG ;
variant profile : release : <profiling>on <debug-symbols>on ;
+variant rpm : <optimization>rpm <debug-symbols>rpm <inlining>full <runtime-debugging>off ;
class searched-lib-target : abstract-file-target
{
--- tools/build/v2/tools/gcc.jam
+++ tools/build/v2/tools/gcc.jam
@@ -270,6 +270,7 @@
flags gcc.compile OPTIONS <optimization>off : -O0 ;
flags gcc.compile OPTIONS <optimization>speed : -O3 ;
flags gcc.compile OPTIONS <optimization>space : -Os ;
+flags gcc.compile OPTIONS <optimization>rpm : "$RPM_OPT_FLAGS" ;
flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;