Kaydet (Commit) bf00789d authored tarafından Peter Foley's avatar Peter Foley Kaydeden (comit) Caolán McNamara

Properly handle the hash-style linker check when cross-compiling

Currently the hash-style check fails when cross-compiling,
use AC_RUN_IFELSE to properly handle this case.

checking for --hash-style gcc linker support ...
./configure: line 12119: ./conftest: cannot execute binary file

Change-Id: I77c2d6a859c1c2e6ba42f31b527a9507127d0644
Reviewed-on: https://gerrit.libreoffice.org/11496Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3dcb47d0
......@@ -4906,16 +4906,17 @@ if test "$GCC" = "yes"; then
hash_style_ldflags_save=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,--hash-style=$hash_style"
AC_LINK_IFELSE([AC_LANG_PROGRAM(
AC_RUN_IFELSE([AC_LANG_PROGRAM(
[
#include <stdio.h>
],[
printf ("");
])],
[ if ./conftest$EXEEXT; then
[
HAVE_LD_HASH_STYLE=TRUE
WITH_LINKER_HASH_STYLE=$hash_style
fi],
],
[HAVE_LD_HASH_STYLE=FALSE],
[HAVE_LD_HASH_STYLE=FALSE])
LDFLAGS=$hash_style_ldflags_save
done
......
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