From: Arnaud Giersch Date: Wed, 23 Oct 2013 16:20:30 +0000 (+0200) Subject: With smpiff, give output file a sensible name. X-Git-Tag: v3_10_rc1~80 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/054593cbb260641e7c6f6cc42778898316d3230c With smpiff, give output file a sensible name. --- diff --git a/src/smpi/smpiff.in b/src/smpi/smpiff.in index 034bdf9ac0..7b497ea001 100644 --- a/src/smpi/smpiff.in +++ b/src/smpi/smpiff.in @@ -35,6 +35,9 @@ then CFILE="${TMPFILE%.f}.c" #echo "$prefix/bin/smpif2c ${TMPFILE} && $prefix/bin/smpicc ${ARGS} ${CFILE} && rm ${CFILE} && rm ${TMPFILE}" $prefix/bin/smpif2c ${TMPFILE} && $prefix/bin/smpicc ${ARGS} ${CFILE} && rm ${CFILE} && rm ${TMPFILE} + # When the file is compiled with "-c" and no output file is specified with + # "-o", rename the output. + test -f ${CFILE%.c}.o && mv ${CFILE%.c}.o ${SRCFILE%.f}.o done else #echo "$prefix/bin/smpicc ${ARGS}"