Commit cd78c10f authored by Rob Latham's avatar Rob Latham

listing darshan libs twice gets us trace files for testpio


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@25 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a4a32c74
...@@ -275,7 +275,13 @@ if [ "$linking" = yes ] ; then ...@@ -275,7 +275,13 @@ if [ "$linking" = yes ] ; then
# Prepend the path for the shared libraries to the library list # Prepend the path for the shared libraries to the library list
mpilibs="$FC_LINKPATH_SHL$libdir $mpilibs" mpilibs="$FC_LINKPATH_SHL$libdir $mpilibs"
fi fi
$Show $FC "${allargs[@]}" -L${DARSHAN_LIB_PATH} -lfmpich.cnk -ldarshan-mpi-io -lz -I$includedir $FFLAGS $LDFLAGS -L$libdir $mpilibs $MPI_OTHERLIBS # If we link link darshan-mpi-io before system mpi lib, we don't get a
# trace but if we don't link it early enough, we get undefined MPI symbols.
# Seems like listing the darshan libs twice does the trick
$Show $FC "${allargs[@]}" -L${DARSHAN_LIB_PATH} -lfmpich.cnk \
-ldarshan-posix -ldarshan-mpi-io \
-I$includedir $FFLAGS $LDFLAGS -L$libdir $mpilibs $MPI_OTHERLIBS \
-ldarshan-posix -ldarshan-mpi-io -lz
rc=$? rc=$?
else else
$Show $FC "${allargs[@]}" -I$includedir $FFLAGS $Show $FC "${allargs[@]}" -I$includedir $FFLAGS
......
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