Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable on osx as -z is not supported there
[simgrid.git] / src / smpi / smpicxx.in
index 414b1f3..85463d9 100755 (executable)
@@ -22,7 +22,10 @@ if [ "@WIN32@" != "1" ]; then
     list_add CXXFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
     list_add CXXFLAGS "-fPIC"
     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: smpicxx pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
     fi