Add -znocombreloc to LDFLAGS if supported.

This commit is contained in:
Richard M. Stallman 2004-03-20 01:08:08 +00:00
parent c1cbc25ad6
commit 1d6cc9a852

View 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