X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b060185506092d4d37bc605840b8e7f028cc81ab..a9348296771699db7d68f86f311378d7e0e49e01:/src/smpi/smpiff.in diff --git a/src/smpi/smpiff.in b/src/smpi/smpiff.in index 7c419def56..7ce663c256 100644 --- a/src/smpi/smpiff.in +++ b/src/smpi/smpiff.in @@ -19,11 +19,13 @@ 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" - if [ "x@APPLE@" != "x1" ]; then + if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then + if [ "x@APPLE@" != "x1" ]; then list_add LINKARGS "-Wl,-z,defs" - else + else list_add LINKARGS "-Wl,-undefined,error" - fi + fi + 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