Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add definitions check to link phase in SMPI (gh #342).. let's see how many ci workers...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 13 May 2020 11:15:24 +0000 (13:15 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 13 May 2020 11:15:24 +0000 (13:15 +0200)
src/smpi/smpicc.in
src/smpi/smpicxx.in
src/smpi/smpif90.in
src/smpi/smpiff.in

index dcf80e7..60c0e45 100755 (executable)
@@ -32,7 +32,7 @@ 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"
+       list_add LINKARGS "-shared" "-Wl,-z,defs"
     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 1e09148..414b1f3 100755 (executable)
@@ -22,7 +22,7 @@ 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"
+       list_add LINKARGS "-shared" "-Wl,-z,defs"
     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 859db13..61494c3 100644 (file)
@@ -18,7 +18,7 @@ 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"
+   list_add LINKARGS "-shared" "-Wl,-z,defs"
 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 91f1afe..2c2b152 100644 (file)
@@ -18,7 +18,7 @@ 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"
+   list_add LINKARGS "-shared" "-Wl,-z,defs"
 else
    echo "Warning: smpiff pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
 fi