From: Martin Quinson Date: Thu, 18 Jul 2019 15:43:18 +0000 (+0200) Subject: Change -fpic to -fPIC as the former is not always sufficient X-Git-Tag: v3.24~273 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a79da9a10ecef3c727a9d2c0f9f3e016d2cf6d81 Change -fpic to -fPIC as the former is not always sufficient --- diff --git a/src/smpi/smpicc.in b/src/smpi/smpicc.in index 9ca2c6f792..e609cea763 100755 --- a/src/smpi/smpicc.in +++ b/src/smpi/smpicc.in @@ -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 diff --git a/src/smpi/smpicxx.in b/src/smpi/smpicxx.in index 2630654d71..2822fdbdd6 100755 --- a/src/smpi/smpicxx.in +++ b/src/smpi/smpicxx.in @@ -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