summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-11-12 09:53:01 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-11-12 09:53:01 +0100
commit5e8e2f3861dfbc4864490401c5209fbc24df3c29 (patch)
tree154689fb831593d175dcbb301c7c15ab4b7ffad8
parent9d6ad68fa445b5e160a9277c250cf3238c373a3a (diff)
configure: Hack to treat x32 as x86_64.
Allows shared compilation on x32 with --disable-asm.
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index a2d872b68d..8ad477738e 100755
--- a/configure
+++ b/configure
@@ -3950,6 +3950,9 @@ case "$arch" in
;;
x86)
check_64bit x86_32 x86_64 'sizeof(void *) > 4'
+ # Treat x32 as x64 for now. Note it also needs spic=$shared
+ test "$subarch" = "x86_32" && check_cpp_condition stddef.h 'defined(__x86_64__)' &&
+ subarch=x86_64
if test "$subarch" = "x86_64"; then
spic=$shared
fi