https://github.com/python/cpython/pull/28845 --- configure.orig 2020-09-05 17:22:07.000000000 +1000 +++ configure 2022-05-10 21:31:09.000000000 +1000 @@ -5251,7 +5251,6 @@ fi -MULTIARCH=$($CC --print-multiarch 2>/dev/null) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 @@ -5380,6 +5379,10 @@ fi rm -f conftest.c conftest.out +if test x$PLATFORM_TRIPLET != xdarwin; then + MULTIARCH=$($CC --print-multiarch 2>/dev/null) +fi + if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then if test x$PLATFORM_TRIPLET != x$MULTIARCH; then as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5