From: Paul Eggert Date: Wed, 23 Mar 2005 19:41:13 +0000 (+0000) Subject: * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): X-Git-Tag: AUTOCONF-2.59c~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ab98b87ae8288761bcdfca59250fe05effb375a;p=thirdparty%2Fautoconf.git * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Merge `-z option' as well for the benefit of Solaris link flags. --- diff --git a/ChangeLog b/ChangeLog index a1b7ecc88..b863b1a0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-03-22 Ralf Wildenhues + + * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): + Merge `-z option' as well for the benefit of Solaris link flags. Pass + whole-archive (-zallextract, -zdefaultextract) options in the hope of + unique libraries, for the Sun Fortran 95 8.0 compiler. Bug reported + against Libtool by Yury Puhalsky . + 2005-03-22 Paul Eggert * NEWS: The configure command now warns you if you attempt to use diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index d5149bbfe..2bbaa4578 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -660,7 +660,7 @@ while test $[@%:@] != 1; do -lkernel32) test x"$CYGWIN" != xyes && ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg" ;; - -[[LRuY]]) + -[[LRuYz]]) # These flags, when seen by themselves, take an argument. # We remove the space between option and argument and re-iterate # unless we find an empty arg or a new option (starting with -) @@ -684,6 +684,9 @@ while test $[@%:@] != 1; do _AC_LIST_MEMBER_IF($ac_arg, $ac_cv_[]_AC_LANG_ABBREV[]_libs, , ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg") ;; + -zallextract*| -zdefaultextract) + ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg" + ;; # Ignore everything else. esac done