diff options
author | Richard M. Stallman <rms@gnu.org> | 2004-03-20 01:08:08 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2004-03-20 01:08:08 +0000 |
commit | 1d6cc9a852b4ac1e8c943af057d8fe442faca34c (patch) | |
tree | 3ac93189bd769a5ffd943b7ddd9f890be06a34b4 /configure.in | |
parent | c1cbc25ad68c12ce7894efc76e9657c2863f4784 (diff) | |
download | emacs-1d6cc9a852b4ac1e8c943af057d8fe442faca34c.tar.gz |
Add -znocombreloc to LDFLAGS if supported.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in index d5e4ba1e69b..8f80608f4a7 100644 --- a/configure.in +++ b/configure.in @@ -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 |