From b5ce2867227081a9f4a12b4d4cf977e5880bd9e2 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 30 Mar 2018 08:36:29 +0200 Subject: [PATCH] don't link_set after link_add to not erase the -shared flag --- src/smpi/smpif90.in | 2 +- src/smpi/smpiff.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smpi/smpif90.in b/src/smpi/smpif90.in index e64d68df87..33d2f8ec31 100644 --- a/src/smpi/smpif90.in +++ b/src/smpi/smpif90.in @@ -16,12 +16,12 @@ CMAKE_LINKARGS="-L@libdir@" @SMPITOOLS_SH@ list_set FFLAGS @SMPI_Fortran_FLAGS@ +list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm" if [ "x${SMPI_PRETEND_CC}" = "x" ]; then list_add LINKARGS "-shared" else echo "Warning: smpif90 pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid." fi -list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm" list_set TMPFILES main_name=main diff --git a/src/smpi/smpiff.in b/src/smpi/smpiff.in index aaac339660..dc8f60f4fe 100644 --- a/src/smpi/smpiff.in +++ b/src/smpi/smpiff.in @@ -16,12 +16,12 @@ CMAKE_LINKARGS="-L@libdir@" @SMPITOOLS_SH@ list_set FFLAGS @SMPI_Fortran_FLAGS@ +list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm" if [ "x${SMPI_PRETEND_CC}" = "x" ]; then list_add LINKARGS "-shared" else echo "Warning: smpiff pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid." fi -list_set LINKARGS "-lsimgrid" @SMPI_Fortran_LIBS@ "-lm" list_set TMPFILES main_name=main -- 2.20.1