Boost logo

Boost-Build :

From: Christopher Currie (codemonkey_at_[hidden])
Date: 2004-06-02 09:44:32


Finally, I have enough understanding of the relationship between GCC
and the Solaris linker to submit this. The attached patch will allow
shared libraries to contain non-PIC code on Solaris, which is the
default for GCC on Linux, and for the Sun native compiler.

Ok to commit?

Christopher

Index: gcc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
retrieving revision 1.20
diff -u -r1.20 gcc.jam
--- gcc.jam 30 May 2004 18:32:08 -0000 1.20
+++ gcc.jam 2 Jun 2004 14:26:05 -0000
@@ -125,6 +125,12 @@
flags gcc.link RPATH <dll-path> ;
flags gcc.link RPATH_LINK <xdll-path> ;

+# This permits shared libraries with non-PIC code on Solaris
+if [ os.name ] = SOLARIS
+{
+ flags gcc.link OPTIONS <link>shared : -mimpure-text ;
+}
+
rule link ( targets * : sources * : properties * )
{
SPACE on $(targets) = " " ;

 


Boost-Build 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