Re: [John Houck] Bug#271232: AC_F77_LIBRARY_LDFLAGS should ignore -lcrt2.o on Mac OS X

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

 



Ben Pfaff <blp@xxxxxxxxxxxxxxx> 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  <eggert@xxxxxxxxxxx>

	* 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 $[@%:@] != 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"


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux