From 054593cbb260641e7c6f6cc42778898316d3230c Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 23 Oct 2013 18:20:30 +0200 Subject: [PATCH] With smpiff, give output file a sensible name. --- src/smpi/smpiff.in | 3 +++ 1 file changed, 3 insertions(+) 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}" -- 2.20.1