Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable on osx as -z is not supported there
[simgrid.git] / src / smpi / smpiff.in
index 2c2b152..a41a2f7 100644 (file)
@@ -18,7 +18,10 @@ CMAKE_LINKARGS="-L@libdir@"
 list_set FFLAGS @SMPI_Fortran_FLAGS@
 list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm"
 if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
-   list_add LINKARGS "-shared" "-Wl,-z,defs"
+   list_add LINKARGS "-shared"
+   if [ "@APPLE@" != "1" ]; then
+       list_add LINKARGS "-Wl,-z,defs"
+   fi 
 else
    echo "Warning: smpiff pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
 fi