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...
[simgrid.git] / src / smpi / smpiff.in
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