Files
Joshua Root 14b8b0049d python{27,34,35,36}: backport universal fix
Also fix configure failure with recent Xcode.
2022-05-10 22:32:47 +10:00

24 lines
736 B
Diff

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