Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68363 - trunk/tools/build/v2/tools
From: vicente.botet_at_[hidden]
Date: 2011-01-22 06:33:22


Author: viboes
Date: 2011-01-22 06:33:21 EST (Sat, 22 Jan 2011)
New Revision: 68363
URL: http://svn.boost.org/trac/boost/changeset/68363

Log:
PGI add -fPIC when compiling with shared libs to try to solve this issue

Link [2011-01-21 10:46:17 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-22 06:33:21 EST (Sat, 22 Jan 2011)
@@ -57,7 +57,7 @@
 
 # Declare flags and actions for compilation
 flags pgi.compile OPTIONS : -Kieee ;
-flags pgi.compile OPTIONS <link>shared : -fpic ;
+flags pgi.compile OPTIONS <link>shared : -fpic -fPIC ;
 flags pgi.compile OPTIONS <debug-symbols>on : -gopt ;
 flags pgi.compile OPTIONS <profiling>on : -xprofile=tcov ;
 flags pgi.compile OPTIONS <optimization>speed : -fast -Mx,8,0x10000000 ;


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