autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [John Houck] Bug#271232: AC_F77_LIBRARY_LDFLAGS should ignore -lcrt2


From: Paul Eggert
Subject: Re: [John Houck] Bug#271232: AC_F77_LIBRARY_LDFLAGS should ignore -lcrt2.o on Mac OS X
Date: Mon, 13 Sep 2004 03:56:58 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Ben Pfaff <address@hidden> writes:

> -        -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | 
> -LANG:=*)
> +        -lang* | -lcrt[[012]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | 
> -LANG:=*)

Thanks.  We're using the following more-general patch instead.

2004-02-09  Paul Eggert  <address@hidden>

        * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore all
        flags of the form -lcrt*.o, not just -lcrt[01].o and -lcrtbegin.o.
        Darwin uses -lcrt2.o and there's little point to cataloging all
        the system variants.  Partial fix reported by Andreas Waechter in:
        http://mail.gnu.org/archive/html/autoconf-patches/2004-02/msg00006.html
        for bug reported by Nelson H. F. Beebe in:
        http://mail.gnu.org/archive/html/bug-autoconf/2003-12/msg00090.html

--- fortran.m4  31 Oct 2003 08:44:47 -0000      1.181
+++ fortran.m4  9 Feb 2004 18:37:57 -0000       1.182
@@ -647,7 +647,7 @@ while test address@hidden:@] != 1; do
              [_AC_LINKER_OPTION([$ac_arg], ac_cv_[]_AC_LANG_ABBREV[]_libs)])
           ;;
           # Ignore these flags.
-        -lang* | -lcrt[[01]].o | -lcrtbegin.o | -lc | -lgcc | -libmil | 
-LANG:=*)
+        -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=*)
           ;;
         -lkernel32)
           test x"$CYGWIN" != xyes && 
ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]