Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51288 - trunk
From: ghost_at_[hidden]
Date: 2009-02-17 07:01:17


Author: vladimir_prus
Date: 2009-02-17 07:01:17 EST (Tue, 17 Feb 2009)
New Revision: 51288
URL: http://svn.boost.org/trac/boost/changeset/51288

Log:
Use symlinks when doing 'stage'.

Text files modified:
   trunk/Jamroot | 22 ++++++++++++++++++++--
   1 files changed, 20 insertions(+), 2 deletions(-)

Modified: trunk/Jamroot
==============================================================================
--- trunk/Jamroot (original)
+++ trunk/Jamroot 2009-02-17 07:01:17 EST (Tue, 17 Feb 2009)
@@ -350,8 +350,26 @@
         }
         else
         {
- return [ common.format-name <base> <threading> <runtime>
- -$(BUILD_ID) : $(name) : $(type) : $(property-set) ] ;
+ local result = [ common.format-name
+ <base>
+ -$(BUILD_ID)
+ : $(name) : $(type) : $(property-set) ] ;
+
+ # Optionally add version suffix. On NT, library with version suffix
+ # will not be recognized by linkers. On CYGWIN, we get strage
+ # duplicate symbol errors when library is generated with version
+ # suffix. On OSX, version suffix is not needed -- the linker expects
+ # the libFoo.1.2.3.dylib format. AIX linkers do not accept version
+ # suffixes either. Pgi compilers can not accept library with version
+ # suffix.
+ if $(type) = SHARED_LIB &&
+ ( ! ( [ $(property-set).get <target-os> ] in windows cygwin darwin aix ) &&
+ ! ( [ $(property-set).get <toolset> ] in pgi ) )
+ {
+ result = $(result).$(BOOST_VERSION) ;
+ }
+
+ return $(result) ;
         }
     }
 }


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