Commit b8f1e35d authored by Philip Carns's avatar Philip Carns
Browse files

incremental progress, need to make this a configure-generated file to

get correct paths

git-svn-id: 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 58281f4a
......@@ -31,18 +31,25 @@ if (!($link_cmd))
#print "compile: $compile_cmd\n";
#print "link: $link_cmd\n";
# check command lines for accuracy
if(!($compile_cmd =~ /-c foo.c/) || !($link_cmd =~ /foo.o -o foo/))
printf STDERR "Error: faulty output from $input_file with -show.\n";
open (OUTPUT, ">$output_file") || die("Error opening output file: $!");
# substitute arguments and darshan options into commands
$compile_cmd =~ s/-c foo.c/"\$\{allargs\[\@\]\}"/g;
$link_cmd =~ s/foo.o -o foo/"\$\{allargs\[\@\]\}" -L$DARSHAN_LIB_PATH $CP_ZLIB_LINK_FLAG -ldarshan-mpi-io -lz/g;
$link_cmd =~ s/$/ -L$DARSHAN_LIB_PATH -ldarshan-posix/g;
print "compile: $compile_cmd\n";
print "link: $link_cmd\n";
print OUTPUT <<'EOF';
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