summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-01-28 23:02:54 (GMT)
committerGitHub <noreply@github.com>2022-01-28 23:02:54 (GMT)
commit1f036ede59e2c4befc07714cf76603c591d5c972 (patch)
tree0367a1d52d4fd82a794b55a21d41272446f535d5 /configure
parent24cc6411adbfe5555ecd8901f1ea50caa414c908 (diff)
downloadcpython-1f036ede59e2c4befc07714cf76603c591d5c972.zip
cpython-1f036ede59e2c4befc07714cf76603c591d5c972.tar.gz
cpython-1f036ede59e2c4befc07714cf76603c591d5c972.tar.bz2
bpo-43112: detect musl as a separate SOABI (GH-24502)
musl libc and gnu libc are not ABI compatible so we need set different SOABI for musl and not simply assume that all linux is linux-gnu. Replace linux-gnu with the detected os for the build from config.guess for linux-musl*.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 22c65e4..da4af32 100755
--- a/configure
+++ b/configure
@@ -6090,6 +6090,11 @@ EOF
if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then
PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
+ case "$build_os" in
+ linux-musl*)
+ PLATFORM_TRIPLET=`echo "$PLATFORM_TRIPLET" | sed 's/linux-gnu/linux-musl/'`
+ ;;
+ esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
$as_echo "$PLATFORM_TRIPLET" >&6; }
else