---

Changes since v1:

 * Use objdump and check for elf32-x86-64 rather than using CC_FOR_BUILD

 config.guess | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.guess b/config.guess
index 9baaa27..8732f63 100755
--- a/config.guess
+++ b/config.guess
@@ -1046,7 +1046,11 @@ EOF
        echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
        exit ;;
     x86_64:Linux:*:*)
-       echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
+       if objdump -f /bin/sh | grep -q elf32-x86-64; then
+           echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
+       else
+           echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
+       fi
        exit ;;
     xtensa*:Linux:*:*)
        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
-- 
2.16.2


_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches

Reply via email to