X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/50cd8958e65b198b1b4a86903064099bef7ea176..9ec7c8ee1c9578ccc16b328c5d4992f641a4ead3:/src/smpi/smpicxx.in diff --git a/src/smpi/smpicxx.in b/src/smpi/smpicxx.in index 86090a3183..3610bb3ca4 100755 --- a/src/smpi/smpicxx.in +++ b/src/smpi/smpicxx.in @@ -1,6 +1,6 @@ #!/usr/bin/env sh -# Copyright (c) 2014-2020. The SimGrid Team. +# Copyright (c) 2014-2021. The SimGrid Team. # All rights reserved. # This program is free software; you can redistribute it and/or modify it @@ -16,7 +16,7 @@ CMAKE_LINKARGS="-L@libdir@" @SMPITOOLS_SH@ -list_set CXXFLAGS "-std=gnu++14" @SMPI_CXX_FLAGS@ +list_set CXXFLAGS "-std=gnu++11" @SMPI_CXX_FLAGS@ list_set LINKARGS if [ "@CMAKE_C_COMPILER_ID@" = "Clang" ] && [ "@HAVE_SANITIZER_ADDRESS@" = "TRUE" ]; then @@ -37,7 +37,7 @@ elif [ "x@APPLE@" = "x1" ]; then 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 CXXFLAGS "-fPIC" @@ -48,7 +48,7 @@ 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