Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix save src/dst
[simgrid.git] / src / smpi / smpiff.in
index 2c2b152965be21189abe16e451db73ac31aae72c..7c419def56c890b5ca757f9120bb2811a8991b9a 100644 (file)
@@ -18,7 +18,12 @@ 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 [ "x@APPLE@" != "x1" ]; then
+       list_add LINKARGS "-Wl,-z,defs"
+   else
+       list_add LINKARGS "-Wl,-undefined,error"
+   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