Add -znocombreloc to LDFLAGS if supported.
This commit is contained in:
parent
c1cbc25ad6
commit
1d6cc9a852
1 changed files with 12 additions and 0 deletions
12
configure.in
12
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue