Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change -fpic to -fPIC as the former is not always sufficient
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 18 Jul 2019 15:43:18 +0000 (17:43 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 23 Jul 2019 09:27:57 +0000 (11:27 +0200)
src/smpi/smpicc.in
src/smpi/smpicxx.in

index 9ca2c6f..e609cea 100755 (executable)
@@ -30,7 +30,7 @@ if [ "x@WIN32@" = "x1" ]; then
     list_add LINKARGS "@libdir@\libsimgrid.dll"
 elif [ "x@APPLE@" = "x1" ]; then
     list_add CFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
-    list_add CFLAGS "-fpic"
+    list_add CFLAGS "-fPIC"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
     else
@@ -39,7 +39,7 @@ elif [ "x@APPLE@" = "x1" ]; then
     list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-undefined,error"}
 else
     list_add CFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
-    list_add CFLAGS "-fpic"
+    list_add CFLAGS "-fPIC"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
     else
index 2630654..2822fdb 100755 (executable)
@@ -20,7 +20,7 @@ list_set CXXFLAGS "-std=gnu++11" @SMPI_CXX_FLAGS@
 list_set LINKARGS
 if [ "@WIN32@" != "1" ]; then
     list_add CXXFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
-    list_add CXXFLAGS "-fpic"
+    list_add CXXFLAGS "-fPIC"
     if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
        list_add LINKARGS "-shared"
     else