Commit 4089566a authored by Philip Carns's avatar Philip Carns

updated symbol check logic to work in -shared case as well


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@89 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 64159c84
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -252,7 +252,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -252,7 +252,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -298,7 +298,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -364,7 +364,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -269,7 +269,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
......@@ -317,7 +317,9 @@ if [ "$linking" = yes ] ; then
# create a temporary file
tmpfile=`mktemp`
# generate a map of the symbol names
$stock_link_cmd -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# don't use -shared for this step
stock_link_cmd_no_shared=`echo $stock_link_cmd | sed 's/ -shared / /g'`
$stock_link_cmd_no_shared -Wl,-Map,$tmpfile $LDFLAGS -o /dev/null >& /dev/null
# is MPI in there?
grep MPI $tmpfile >& /dev/null
rc_mpi=$?
......
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