From 1029b549133589571d4e6a32b49f817b86a18477 Mon Sep 17 00:00:00 2001 From: Guilherme Amadio <amadio@cern.ch> Date: Thu, 3 May 2018 15:52:42 +0200 Subject: [PATCH] Add -fPIC to MAKESHAREDLIB rule in compiledata.h ACLiC needs to produce position independent code for its objects, or it will fail at runtime. --- build/unix/compiledata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/unix/compiledata.sh b/build/unix/compiledata.sh index 28f82a22093..594d687c792 100755 --- a/build/unix/compiledata.sh +++ b/build/unix/compiledata.sh @@ -118,7 +118,7 @@ echo "#define CXX \"$BXX\"" >> ${COMPILEDATA}.tmp echo "#define COMPILER \""`type -path $CXX`"\"" >> ${COMPILEDATA}.tmp echo "#define COMPILERVERS \"$COMPILERVERS\"" >> ${COMPILEDATA}.tmp if [ "$CUSTOMSHARED" = "" ]; then - echo "#define MAKESHAREDLIB \"cd \$BuildDir ; $BXX -c \$Opt $CXXFLAGS \$IncludePath \$SourceFiles ; $BXX \$ObjectFiles $SOFLAGS $LDFLAGS $EXPLLINKLIBS -o \$SharedLib\"" >> ${COMPILEDATA}.tmp + echo "#define MAKESHAREDLIB \"cd \$BuildDir ; $BXX -fPIC -c \$Opt $CXXFLAGS \$IncludePath \$SourceFiles ; $BXX \$ObjectFiles $SOFLAGS $LDFLAGS $EXPLLINKLIBS -o \$SharedLib\"" >> ${COMPILEDATA}.tmp else echo "#define MAKESHAREDLIB \"$CUSTOMSHARED\"" >> ${COMPILEDATA}.tmp fi -- GitLab