summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2015-03-08 19:43:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2015-03-08 19:43:10 (GMT)
commit5bd7bf5bab3a961a3952e36b053eb93818553e13 (patch)
treec6df9941bf61e2de5917b788bf59436a8495b49b /configure
parentaf098a221aba15dfd121250e590c8ff72c81665b (diff)
downloadcpython-5bd7bf5bab3a961a3952e36b053eb93818553e13.zip
cpython-5bd7bf5bab3a961a3952e36b053eb93818553e13.tar.gz
cpython-5bd7bf5bab3a961a3952e36b053eb93818553e13.tar.bz2
Issue #22980: Under Linux, C extensions now include bitness in the file name,
to make it easy to test 32-bit and 64-bit builds in the same working tree.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index 799c6c4..d91a9c7 100755
--- a/configure
+++ b/configure
@@ -14200,7 +14200,15 @@ $as_echo_n "checking ABIFLAGS... " >&6; }
$as_echo "$ABIFLAGS" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
$as_echo_n "checking SOABI... " >&6; }
-SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}
+
+case $ac_sys_system in
+ Linux*|GNU*)
+ BITNESS_SUFFIX=-$(($ac_cv_sizeof_void_p * 8))b;;
+ *)
+ BITNESS_SUFFIX=;;
+esac
+SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${BITNESS_SUFFIX}
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
$as_echo "$SOABI" >&6; }