]> git.eshelyaron.com Git - emacs.git/commitdiff
Add -znocombreloc to LDFLAGS if supported.
authorRichard M. Stallman <rms@gnu.org>
Sat, 20 Mar 2004 01:08:08 +0000 (01:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 20 Mar 2004 01:08:08 +0000 (01:08 +0000)
configure.in

index d5e4ba1e69b9e2a6283e67efbc95022a4b657684..8f80608f4a7c604bb1c826e1dd823c1d3d18c29d 100644 (file)
@@ -1273,6 +1273,18 @@ then
   ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
 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.)
+late_LDFLAGS=$LDFLAGS
+LDFLAGS="$LDFLAGS -znocombreloc"
+
+AC_MSG_CHECKING([For -znocombreloc])
+AC_LINK_IFELSE([main(){return 0;}],
+  [AC_MSG_RESULT(yes)],
+  LDFLAGS=$late_LDFLAGS
+  [AC_MSG_RESULT(no)])
+
 dnl checks for Unix variants
 AC_AIX