From 9aedae5848333acf55fa34fd734d5704364ccaa1 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 12 Jan 2015 15:25:10 -0800 Subject: [PATCH] Set TARGET to X86_64 if __x86_64__ is defined --- configure.host | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.host b/configure.host index 5ee632c..c7eb9c8 100644 --- a/configure.host +++ b/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 -- 1.9.3