Commit 015b6364 authored by Hendryk Bockelmann's avatar Hendryk Bockelmann
Browse files

fix for nagfor -shared option added

parent 3efe28e5
#!/bin/bash
verlte() {
[ "$1" = "`echo -e "$1\n$2" | sort -V | head -n1`" ]
}
autoreconf -fvi
libtool_version=`libtool --version | awk 'NR==1 {print $4}'`
verlte $libtool_version 2.4.2 && {
# fix m4/libtool.m4 for nagfor sharedflag
# see https://trac.mpich.org/projects/mpich/ticket/1870 for details
patch --forward --no-backup-if-mismatch -p0 -s -l < maint/libtool.m4.patch
# rebuild configure
autoconf -f || exit 1
# Reset libtool.m4 timestamps to avoid confusing make
touch -r m4/ltversion.m4 m4/libtool.m4
}
\ No newline at end of file
--- m4/libtool.m4 2017-06-16 13:17:10.000000000 +0200
+++ m4/libtool.m4.patched 2017-06-16 13:18:46.000000000 +0200
@@ -4817,6 +4817,8 @@
lf95*) # Lahey Fortran 8.1
_LT_TAGVAR(whole_archive_flag_spec, $1)=
tmp_sharedflag='--shared' ;;
+ nagfor*)
+ 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= ;;
Supports Markdown
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