From: Lucas Nesi Date: Wed, 28 Sep 2022 14:26:26 +0000 (+0200) Subject: Ensure a fPIC in case CMDARGS has a fPIE X-Git-Tag: v3.32~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/87bd67da504fcbde92b0ae9b29a971635bb858e5 Ensure a fPIC in case CMDARGS has a fPIE --- diff --git a/src/smpi/smpicc.in b/src/smpi/smpicc.in index 6463ec80fb..162cca023e 100755 --- a/src/smpi/smpicc.in +++ b/src/smpi/smpicc.in @@ -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}" diff --git a/src/smpi/smpicxx.in b/src/smpi/smpicxx.in index 944870c189..b620454423 100755 --- a/src/smpi/smpicxx.in +++ b/src/smpi/smpicxx.in @@ -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}"