Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add definitions check to link phase in SMPI (gh #342).. let's see how many ci workers...
[simgrid.git] / src / smpi / smpif90.in
index e8ff836d8ba24a6e41e2f7019f1808badb2bd322..61494c346781a04faa9e0a70560b64da2b8bd330 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env sh
 
-# Copyright (c) 2012-2019. The SimGrid Team. All rights reserved.
+# Copyright (c) 2012-2020. The SimGrid Team. All rights reserved.
 
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
@@ -18,7 +18,7 @@ CMAKE_LINKARGS="-L@libdir@"
 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"
+   list_add LINKARGS "-shared" "-Wl,-z,defs"
 else
    echo "Warning: smpif90 pretends to be a regular compiler (SMPI_PRETEND_CC is set). Produced binaries will not be usable in SimGrid."
 fi