diff options
Diffstat (limited to 'libffi/configure.host')
-rw-r--r-- | libffi/configure.host | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libffi/configure.host b/libffi/configure.host index 90de638b30c..e310191e018 100644 --- a/libffi/configure.host +++ b/libffi/configure.host @@ -100,7 +100,13 @@ case "${host}" in TARGET=X86_64 ;; *) - TARGET=X86 + echo 'int foo (void) { return __x86_64__; }' > conftest.c + if $CC $CFLAGS -Werror -S conftest.c -o conftest.s > /dev/null 2>&1; then + TARGET=X86_64; + else + TARGET=X86; + fi + rm -f conftest.* ;; esac else |