Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
disable on osx as -z is not supported there
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 13 May 2020 12:11:37 +0000 (14:11 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 13 May 2020 12:11:37 +0000 (14:11 +0200)
src/smpi/smpicc.in
src/smpi/smpicxx.in
src/smpi/smpif90.in
src/smpi/smpiff.in

index 60c0e45..8ec8dde 100755 (executable)
@@ -32,7 +32,10 @@ elif [ "x@APPLE@" = "x1" ]; then
     list_add CFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
     list_add CFLAGS "-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: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
     fi
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
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
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