Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58331 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2009-12-12 18:08:30


Author: vladimir_prus
Date: 2009-12-12 18:08:29 EST (Sat, 12 Dec 2009)
New Revision: 58331
URL: http://svn.boost.org/trac/boost/changeset/58331

Log:
Do not strip binaries in release variant.

Text files modified:
   trunk/tools/build/v2/tools/builtin.jam | 6 ++++++
   trunk/tools/build/v2/tools/gcc.jam | 8 ++++----
   2 files changed, 10 insertions(+), 4 deletions(-)

Modified: trunk/tools/build/v2/tools/builtin.jam
==============================================================================
--- trunk/tools/build/v2/tools/builtin.jam (original)
+++ trunk/tools/build/v2/tools/builtin.jam 2009-12-12 18:08:29 EST (Sat, 12 Dec 2009)
@@ -121,6 +121,12 @@
 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 ;

Modified: trunk/tools/build/v2/tools/gcc.jam
==============================================================================
--- trunk/tools/build/v2/tools/gcc.jam (original)
+++ trunk/tools/build/v2/tools/gcc.jam 2009-12-12 18:08:29 EST (Sat, 12 Dec 2009)
@@ -676,7 +676,7 @@
         # 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)/<debug-symbols>off : -Wl,--strip-all : unchecked ;
+ toolset.flags $(toolset).link OPTIONS $(condition)/<strip>on : -Wl,--strip-all : unchecked ;
         toolset.flags $(toolset).link RPATH $(condition) : <dll-path> : unchecked ;
         toolset.flags $(toolset).link RPATH_LINK $(condition) : <xdll-path> : unchecked ;
         toolset.flags $(toolset).link START-GROUP $(condition) : -Wl,--start-group : unchecked ;
@@ -731,7 +731,7 @@
 
     case hpux :
         {
- toolset.flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off
+ toolset.flags $(toolset).link OPTIONS $(condition)/<strip>on
             : -Wl,-s : unchecked ;
         toolset.flags $(toolset).link OPTIONS $(condition)/<link>shared
             : -fPIC : unchecked ;
@@ -740,7 +740,7 @@
     case osf :
         {
         # No --strip-all, just -s.
- toolset.flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off
+ toolset.flags $(toolset).link OPTIONS $(condition)/<strip>on
             : -Wl,-s : unchecked ;
         toolset.flags $(toolset).link RPATH $(condition) : <dll-path>
             : unchecked ;
@@ -752,7 +752,7 @@
 
     case sun :
         {
- toolset.flags $(toolset).link OPTIONS $(condition)/<debug-symbols>off
+ toolset.flags $(toolset).link OPTIONS $(condition)/<strip>on
             : -Wl,-s : unchecked ;
         toolset.flags $(toolset).link RPATH $(condition) : <dll-path>
             : unchecked ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk