#!/usr/bin/env sh
-# Copyright (c) 2007-2020. The SimGrid Team.
+# Copyright (c) 2007-2021. The SimGrid Team.
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it
echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
fi
if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then
- list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-undefined,error"}
+ list_add LINKARGS "-lsimgrid" "-lm" ${LINKER_UNDEFINED_ERROR:+"-Wl,-undefined,error"}
fi
else
list_add CFLAGS "-fPIC"
if [ "x${SMPI_PRETEND_CC}" = "x" ]; then
- list_add CFLAGS "-include" "\"@includedir@/smpi/smpi_helpers.h\""
+ list_add CFLAGS "-include" "@includedir@/smpi/smpi_helpers.h"
list_add LINKARGS "-shared"
else
echo "Warning: smpicc pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
fi
if [ "x${SMPI_NO_UNDEFINED_CHECK}" = "x" ]; then
- list_add LINKARGS "-lsimgrid" ${LINKER_UNDEFINED_ERROR:+"-Wl,-z,defs"}
+ list_add LINKARGS "-lsimgrid" "-lm" ${LINKER_UNDEFINED_ERROR:+"-Wl,-z,defs"}
fi
fi
if [ -z "$SRCFILE" ] ; then
SRCFILE="$ARG"
fi
- list_add CMDARGS "\"${SRCFILE}\""
+ list_add CMDARGS "${SRCFILE}"
;;
'-version' | '--version')
printf '%b\n' "$SIMGRID_VERSION"
echo "$@"
[ "x$show" = x1 ] && exit 0
fi
-eval "$@"
+"$@"