mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 12:22:17 +00:00
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
[SVN r68379]
This commit is contained in:
@@ -97,7 +97,7 @@ flags pgi.link OPTIONS <debug-symbols>on : -gopt ;
|
||||
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> ;
|
||||
|
||||
Reference in New Issue
Block a user