X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b060185506092d4d37bc605840b8e7f028cc81ab..a9348296771699db7d68f86f311378d7e0e49e01:/src/smpi/smpicxx.in diff --git a/src/smpi/smpicxx.in b/src/smpi/smpicxx.in index 4d7632bec9..2ef3b5e64f 100755 --- a/src/smpi/smpicxx.in +++ b/src/smpi/smpicxx.in @@ -36,7 +36,9 @@ elif [ "x@APPLE@" = "x1" ]; then else echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid." fi - list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-undefined,error"} + if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then + list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-undefined,error"} + fi else list_add CXXFLAGS "-include" "@includedir@/smpi/smpi_helpers.h" list_add CXXFLAGS "-fPIC" @@ -45,7 +47,9 @@ else else echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid." fi - list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-z,defs"} + if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then + list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-z,defs"} + fi fi list_set CMDARGS