# HG changeset patch # User Richard M. Stallman # Date 1079879481 0 # Node ID 740e62f13379b1a58de6678c1aa4148da59f18ed # Parent e7f6c4621f865b7bfef56d5a687775faa9a58757 Fix previous change. diff -r e7f6c4621f86 -r 740e62f13379 configure.in --- a/configure.in Sun Mar 21 04:40:38 2004 +0000 +++ b/configure.in Sun Mar 21 14:31:21 2004 +0000 @@ -1276,8 +1276,15 @@ dnl We need -znocombreloc if we're using a relatively recent GNU ld. dnl If we can link with the flag, it shouldn't do any harm anyhow. dnl (Don't use `-z nocombreloc' as -z takes no arg on Irix.) +dnl Treat GCC specially since it just gives a non-fatal `unrecognized option' +dnl if not built to support GNU ld. + late_LDFLAGS=$LDFLAGS -LDFLAGS="$LDFLAGS -znocombreloc" +if test $GCC = yes; then + LDFLAGS="$LDFLAGS -Wl,-znocombreloc" +else + LDFLAGS="$LDFLAGS -znocombreloc" +fi AC_MSG_CHECKING([For -znocombreloc]) AC_LINK_IFELSE([main(){return 0;}],