This is breaking compilation when the code has shared libraries itself (CLAMR).
Not sure if we should keep all this, actually ...
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 CFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
list_add CFLAGS "-fPIC"
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
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"
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
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