summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-06-23 15:52:02 +0200
committerAndy Polyakov <appro@openssl.org>2016-06-24 22:07:33 +0200
commitc5c0cac5c1a1604513087fd812c9d4f76649b989 (patch)
tree4533e6fc9ba1c4db2cb9f55c8a041265eeeb1668 /config
parent3b92e5189965b343603931d58992b8e92b212d49 (diff)
downloadopenssl-new-c5c0cac5c1a1604513087fd812c9d4f76649b989.tar.gz
./config: detect x32-only environment.
RT#4583 Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'config')
-rwxr-xr-xconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/config b/config
index 2e02ae3691..1fef03e391 100755
--- a/config
+++ b/config
@@ -640,7 +640,12 @@ case "$GUESSOS" in
#fi
OUT="linux64-s390x"
;;
- x86_64-*-linux?) OUT="linux-x86_64" ;;
+ x86_64-*-linux?)
+ if $CC -dM -E -x c /dev/null 2>&1 | grep -q ILP32 > /dev/null; then
+ OUT="linux-x32"
+ else
+ OUT="linux-x86_64"
+ fi ;;
*86-*-linux2) OUT="linux-elf"
if [ "$GCCVER" -gt 28 ]; then
if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then