Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure a fPIC in case CMDARGS has a fPIE
[simgrid.git] / src / smpi / smpicc.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}"