Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure a fPIC in case CMDARGS has a fPIE
authorLucas Nesi <lucas.nesi@inf.ufrgs.br>
Wed, 28 Sep 2022 14:26:26 +0000 (16:26 +0200)
committerArnaud Giersch <arnaud.giersch@free.fr>
Wed, 28 Sep 2022 16:01:58 +0000 (18:01 +0200)
src/smpi/smpicc.in
src/smpi/smpicxx.in

index 6463ec8..162cca0 100755 (executable)
@@ -93,6 +93,10 @@ while [ $# -gt 0 ]; do
     esac
 done
 
+if [ "x@WIN32@" != "x1" ]; then
+    list_add CMDARGS "-fPIC"
+fi
+
 list_set CMDLINE "${CC}"
 list_add_not_empty CMDLINE "${CFLAGS}"
 list_add_not_empty CMDLINE "${INCLUDEARGS}"
index 944870c..b620454 100755 (executable)
@@ -90,6 +90,10 @@ while [ $# -gt 0 ]; do
   esac
 done
 
+if [ "x@WIN32@" != "x1" ]; then
+    list_add CMDARGS "-fPIC"
+fi
+
 list_set CMDLINE "${CXX}"
 list_add_not_empty CMDLINE "${CXXFLAGS}"
 list_add_not_empty CMDLINE "${INCLUDEARGS}"