changeset 54456:740e62f13379

Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sun, 21 Mar 2004 14:31:21 +0000
parents e7f6c4621f86
children ba16dd8bb815
files configure.in
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;}],