diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-01-28 23:02:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 23:02:54 (GMT) |
commit | 1f036ede59e2c4befc07714cf76603c591d5c972 (patch) | |
tree | 0367a1d52d4fd82a794b55a21d41272446f535d5 /configure | |
parent | 24cc6411adbfe5555ecd8901f1ea50caa414c908 (diff) | |
download | cpython-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-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |