Commit d788df0b authored by Philip Carns's avatar Philip Carns

bug fix to darshan-gen-fortran.pl; the -lfmpich substitution has to be

made at runtime


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@326 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 29bb17cf
......@@ -64,7 +64,7 @@ open (OUTPUT, ">$output_file") || die("Error opening output file: $!");
# substitute arguments and darshan options into commands
$base_link_cmd = $link_cmd;
$base_link_cmd =~ s/foo.o -o foo/"\$\{allargs\[\@\]\}"/g;
$link_cmd =~ s/foo.o -o foo/"\$\{newallargs\[\@\]\}" -L$DARSHAN_LIB_PATH $CP_ZLIB_LINK_FLAGS -lfmpich -ldarshan-mpi-io -lz $CP_WRAPPERS/g;
$link_cmd =~ s/foo.o -o foo/"\$\{newallargs\[\@\]\}" -L$DARSHAN_LIB_PATH $CP_ZLIB_LINK_FLAGS \$FMPICH -ldarshan-mpi-io -lz $CP_WRAPPERS/g;
$link_cmd =~ s/$/ -L$DARSHAN_LIB_PATH -ldarshan-posix/g;
$compile_cmd =~ s/-c foo.c/"\$\{allargs\[\@\]\}"/g;
......@@ -165,16 +165,12 @@ print OUTPUT<<"EOF";
rc_pmpi=\$?
# normal or cnk libraries?
grep -E mpich\\.cnk\\.a \$tmpfile >& /dev/null
grep -E mpich\\.cnk \$tmpfile >& /dev/null
rc_cnk_check=\$?
if [ \$rc_cnk_check -eq 0 ] ; then
argno=0
for arg in "\$\{newallargs\[\@\]\}"; do
if [ "\$arg" = "-lfmpich" ]; then
newallargs[\$argno]=-lfmpich.cnk;
fi
argno=`expr \$argno + 1`
done
FMPICH=-lfmpich.cnk
else
FMPICH=-lfmpich
fi
rm \$tmpfile >& /dev/null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment