Commit 8cf54f19 authored by Antonio J. Pena's avatar Antonio J. Pena Committed by Pavan Balaji
Browse files

Fixes ticket #1870.



Patching libtool.m4 from autogen.sh to add compatibility with the NAG
Fortran compiler plus shared libraries.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@mcs.anl.gov>
parent 7a662589
......@@ -906,3 +906,24 @@ if [ "$do_build_configure" = "yes" ] ; then
fi
done
fi
########################################################################
## Patching libtool.m4
########################################################################
# This works with libtool versions 2.4 - 2.4.2.
# Older versions are not supported to build mpich.
# Newer versions should have this patch already included.
# There is no need to patch if we're not going to use Fortran.
if [ $do_bindings = "yes" ] ; then
echo "------------------------------------------------------------------------"
echo
echo_n "Patching libtool.m4 for compatibility with nagfor shared libraries... "
patch --forward -p0 < maint/libtool.m4.patch >/dev/null
if [ $? -eq 0 ] ; then
echo "done"
else
echo "failed"
exit 1
fi
fi
--- confdb/libtool.m4 2013-03-29 16:26:23.162062517 -0500
+++ confdb/libtool.m4 2013-06-21 14:22:05.138914413 -0500
@@ -4817,6 +4817,8 @@
lf95*) # Lahey Fortran 8.1
_LT_TAGVAR(whole_archive_flag_spec, $1)=
tmp_sharedflag='--shared' ;;
+ nagfor*) # NAGFOR 5.3
+ tmp_sharedflag='-Wl,-shared' ;;
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
tmp_sharedflag='-qmkshrobj'
tmp_addflag= ;;
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