]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Sun, 21 Mar 2004 14:31:42 +0000 (14:31 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 21 Mar 2004 14:31:42 +0000 (14:31 +0000)
ChangeLog
configure.in

index 466a4a303d5df2caec19311cc0fe8b1229656826..18d83fd50e701e96099a66f7815e0e66ff5e2795 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
+2004-03-21  Dave Love  <fx@gnu.org>
+
+       * configure.in: Fix previous change.
+
 2004-03-18  Dave Love  <fx@gnu.org>
 
-       * configure.in: Add -znocombreloc to LDFLAGS if supported.
+       * configure.in: Add -znocombreloc to LDFLAGS if compiler supports it.
 
 2004-03-15  Luc Teirlinck  <teirllm@auburn.edu>
 
index 8f80608f4a7c604bb1c826e1dd823c1d3d18c29d..3e89bea0c2dd02eeaeb65934c364558b2d8f03d3 100644 (file)
@@ -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;}],