list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm"
if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
list_add LINKARGS "-shared"
- if [ "x@APPLE@" != "x1" ]; then
- list_add LINKARGS "-Wl,-z,defs"
- else
- list_add LINKARGS "-Wl,-undefined,error"
+ if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then
+ if [ "x@APPLE@" != "x1" ]; then
+ list_add LINKARGS "-Wl,-z,defs"
+ else
+ list_add LINKARGS "-Wl,-undefined,error"
+ fi
fi
else
echo "Warning: smpif90 pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."