Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49451 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2008-10-25 12:44:09


Author: vladimir_prus
Date: 2008-10-25 12:44:09 EDT (Sat, 25 Oct 2008)
New Revision: 49451
URL: http://svn.boost.org/trac/boost/changeset/49451

Log:
Set -fPIC for .m and .mm compilations
Text files modified:
   trunk/tools/build/v2/tools/darwin.jam | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/tools/darwin.jam
==============================================================================
--- trunk/tools/build/v2/tools/darwin.jam (original)
+++ trunk/tools/build/v2/tools/darwin.jam 2008-10-25 12:44:09 EDT (Sat, 25 Oct 2008)
@@ -258,6 +258,7 @@
 rule compile.m
 {
     LANG on $(<) = "-x objective-c" ;
+ gcc.setup-fpic $(targets) : $(sources) : $(properties) ;
 }
 
 actions compile.m
@@ -265,9 +266,10 @@
     "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
 }
 
-rule compile.mm
+rule compile.mm ( targets * : sources * : properties * )
 {
     LANG on $(<) = "-x objective-c++" ;
+ gcc.setup-fpic $(targets) : $(sources) : $(properties) ;
 }
 
 actions compile.mm


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