From a79da9a10ecef3c727a9d2c0f9f3e016d2cf6d81 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 18 Jul 2019 17:43:18 +0200 Subject: [PATCH 1/1] Change -fpic to -fPIC as the former is not always sufficient --- src/smpi/smpicc.in | 4 ++-- src/smpi/smpicxx.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1