From 15ceb700cdcee5e3715f6cc09e8970a87e893dd4 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 12 Dec 2009 23:08:29 +0000 Subject: [PATCH] Do not strip binaries in release variant. [SVN r58331] --- src/tools/builtin.jam | 6 ++++++ src/tools/gcc.jam | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/tools/builtin.jam b/src/tools/builtin.jam index 881ef732c..1565213ec 100644 --- a/src/tools/builtin.jam +++ b/src/tools/builtin.jam @@ -121,6 +121,12 @@ feature.feature asynch-exceptions : off on : propagated ; feature.feature extern-c-nothrow : off on : propagated ; feature.feature debug-symbols : on off : propagated ; +# Controls whether the binary should be stripped -- that is have +# everything not necessary to running removed. This option should +# not be very often needed. Also, this feature will show up in +# target paths of everything, not just binaries. Should fix that +# when impelementing feature relevance. +feature.feature strip : off on : propagated ; feature.feature define : : free ; feature.feature undef : : free ; feature.feature "include" : : free path ; #order-sensitive ; diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 21b265d8a..51d39a2ee 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -676,7 +676,7 @@ rule init-link-flags ( toolset linker condition ) # as opposed to -s since icc (intel's compiler) is generally # option-compatible with and inherits from the gcc toolset, but does not # support -s. - toolset.flags $(toolset).link OPTIONS $(condition)/off : -Wl,--strip-all : unchecked ; + toolset.flags $(toolset).link OPTIONS $(condition)/on : -Wl,--strip-all : unchecked ; toolset.flags $(toolset).link RPATH $(condition) : : unchecked ; toolset.flags $(toolset).link RPATH_LINK $(condition) : : unchecked ; toolset.flags $(toolset).link START-GROUP $(condition) : -Wl,--start-group : unchecked ; @@ -731,7 +731,7 @@ rule init-link-flags ( toolset linker condition ) case hpux : { - toolset.flags $(toolset).link OPTIONS $(condition)/off + toolset.flags $(toolset).link OPTIONS $(condition)/on : -Wl,-s : unchecked ; toolset.flags $(toolset).link OPTIONS $(condition)/shared : -fPIC : unchecked ; @@ -740,7 +740,7 @@ rule init-link-flags ( toolset linker condition ) case osf : { # No --strip-all, just -s. - toolset.flags $(toolset).link OPTIONS $(condition)/off + toolset.flags $(toolset).link OPTIONS $(condition)/on : -Wl,-s : unchecked ; toolset.flags $(toolset).link RPATH $(condition) : : unchecked ; @@ -752,7 +752,7 @@ rule init-link-flags ( toolset linker condition ) case sun : { - toolset.flags $(toolset).link OPTIONS $(condition)/off + toolset.flags $(toolset).link OPTIONS $(condition)/on : -Wl,-s : unchecked ; toolset.flags $(toolset).link RPATH $(condition) : : unchecked ;