|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49126 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2008-10-03 04:32:06
Author: vladimir_prus
Date: 2008-10-03 04:32:05 EDT (Fri, 03 Oct 2008)
New Revision: 49126
URL: http://svn.boost.org/trac/boost/changeset/49126
Log:
Ubreak PCH, by setting -fPIC option as necessary when
compiling PCH.
Text files modified:
trunk/tools/build/v2/tools/gcc.jam | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/tools/build/v2/tools/gcc.jam
==============================================================================
--- trunk/tools/build/v2/tools/gcc.jam (original)
+++ trunk/tools/build/v2/tools/gcc.jam 2008-10-03 04:32:05 EDT (Fri, 03 Oct 2008)
@@ -358,12 +358,21 @@
toolset.flags gcc.compile INCLUDES <include> ;
toolset.flags gcc.compile.c++ TEMPLATE_DEPTH <c++-template-depth> ;
+rule compile.c++.pch ( targets * : sources * : properties * )
+{
+ setup-fpic $(targets) : $(sources) : $(properties) ;
+}
actions compile.c++.pch
{
"$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
}
+rule compile.c.pch ( targets * : sources * : properties * )
+{
+ setup-fpic $(targets) : $(sources) : $(properties) ;
+}
+
actions compile.c.pch
{
"$(CONFIG_COMMAND)" -x c-header $(OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
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