Commit 1d6cc9a8 authored by Richard M. Stallman's avatar Richard M. Stallman

Add -znocombreloc to LDFLAGS if supported.

parent c1cbc25a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment