Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57756 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2009-11-18 15:31:35


Author: vladimir_prus
Date: 2009-11-18 15:31:33 EST (Wed, 18 Nov 2009)
New Revision: 57756
URL: http://svn.boost.org/trac/boost/changeset/57756

Log:
Use qpic=large. On Linux, set soname.

Fixes #2595.

Text files modified:
   trunk/tools/build/v2/tools/vacpp.jam | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/tools/build/v2/tools/vacpp.jam
==============================================================================
--- trunk/tools/build/v2/tools/vacpp.jam (original)
+++ trunk/tools/build/v2/tools/vacpp.jam 2009-11-18 15:31:33 EST (Wed, 18 Nov 2009)
@@ -92,7 +92,7 @@
 else
 {
     # Linux PPC
- flags vacpp.compile CFLAGS <link>shared : -qpic ;
+ flags vacpp.compile CFLAGS <link>shared : -qpic=large ;
     flags vacpp FINDLIBS : rt ;
 }
 
@@ -120,6 +120,9 @@
 flags vacpp VA_CXX_COMPILER <threading>single : xlC ;
 flags vacpp VA_CXX_COMPILER <threading>multi : xlC_r ;
 
+SPACE = " " ;
+
+flags vacpp.link.dll HAVE_SONAME <target-os>linux : "" ;
 
 actions vacpp.link bind NEEDLIBS
 {
@@ -128,7 +131,7 @@
 
 actions vacpp.link.dll bind NEEDLIBS
 {
- xlC_r -G $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS)
+ xlC_r -G $(LINKFLAGS) -o "$(<[1])" $(HAVE_SONAME)-Wl,-soname$(SPACE)-Wl,$(<[-1]:D=) -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS)
 }
 
 actions vacpp.compile.c


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