Mercurial > emacs
changeset 54447:eda36a85f9fd
Add -znocombreloc to LDFLAGS if supported.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 20 Mar 2004 01:08:08 +0000 |
parents | 72f91438a23b |
children | 4c90cdbb8611 |
files | configure.in |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Fri Mar 19 22:26:38 2004 +0000 +++ b/configure.in Sat Mar 20 01:08:08 2004 +0000 @@ -1273,6 +1273,18 @@ 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