Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be a little more tricky and hopefully more portable
[simgrid.git] / src / smpi / smpif90.in
index 99bd88801ad14643262a4e4eaac2ae60decbd53a..7c52fc57dae65396856ba7ae7f085c3df7088722 100644 (file)
@@ -1,6 +1,6 @@
-#! /bin/bash
+#! /usr/bin/env bash
 
-CC=gfortran
+F90=@GFORTRAN_EXE@
 
 INCLUDEARGS="@includeflag@"
 CMAKE_LINKARGS="-L@libdir@"
@@ -36,7 +36,7 @@ while [ -n "$1" ]; do
   esac
 done
 
-CMDLINE="${CC} ${FFLAGS} ${CMDLINE} ${INCLUDEARGS} ${CMAKE_LINKARGS} ${LINKARGS}"
+CMDLINE="${F90} ${FFLAGS} ${CMDLINE} ${INCLUDEARGS} ${CMAKE_LINKARGS} ${LINKARGS}"
 
 #echo "${CMDLINE}"
 ${CMDLINE}