|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68379 - trunk/tools/build/v2/tools
From: vicente.botet_at_[hidden]
Date: 2011-01-23 09:29:48
Author: viboes
Date: 2011-01-23 09:29:45 EST (Sun, 23 Jan 2011)
New Revision: 68379
URL: http://svn.boost.org/trac/boost/changeset/68379
Log:
PGI add -fPIC when compiling with shared libs to try to solve this issue
Link [2011-01-23 10:12:19 UTC]: fail
"/sierra/Sntools/extras/compilers/pgi/linux86-64/10.1/bin/pgCC" -gopt -fpic --zc_eh -shared -o "/scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/threading-multi/libboost_system.so" "/scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/threading-multi/error_code.o" -Wl,-h -Wl,libboost_system.so -Bdynamic -lpthread -lrt -lrt -lrt -Bstatic -Bdynamic
/usr/bin/ld: /scratch/boost/results/boost/bin.v2/libs/system/build/pgi-10.1/debug/threading-multi/error_code.o: relocation R_X86_64_PC32 against `__catch_clause_number' can not be used when making a shared object; recompile with -fPIC
Text files modified:
trunk/tools/build/v2/tools/pgi.jam | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/tools/pgi.jam
==============================================================================
--- trunk/tools/build/v2/tools/pgi.jam (original)
+++ trunk/tools/build/v2/tools/pgi.jam 2011-01-23 09:29:45 EST (Sun, 23 Jan 2011)
@@ -97,7 +97,7 @@
flags pgi.link OPTIONS <debug-symbols>off : -s ;
flags pgi.link OPTIONS <profiling>on : -xprofile=tcov ;
flags pgi.link OPTIONS <linkflags> ;
-flags pgi.link OPTIONS <link>shared : -fpic ;
+flags pgi.link OPTIONS <link>shared : -fpic -fPIC ;
flags pgi.link LINKPATH <library-path> ;
flags pgi.link FINDLIBS-ST <find-static-library> ;
flags pgi.link FINDLIBS-SA <find-shared-library> ;
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