summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-03-21 14:31:42 +0000
committerRichard M. Stallman <rms@gnu.org>2004-03-21 14:31:42 +0000
commit06aacc624c2637c59b2739d485d7ca594fb380cf (patch)
tree563aa57c96dc72af48b270727c50e076f79efc33 /configure.in
parent8f8607bebf9c61948456a97103ca3d0ed7c510a3 (diff)
Fix previous change.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 8f80608f4a..3e89bea0c2 100644
--- a/configure.in
+++ b/configure.in
@@ -1276,8 +1276,15 @@ fi
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;}],