Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable on osx as -z is not supported there
[simgrid.git] / src / smpi / smpif90.in
index 61494c3..40ee29a 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: smpif90 pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
 fi