@@ -95,7 +95,27 @@ if [ "${BUILD_TRIPLE}" != "${TARGET_TRIPLE}" ]; then
95
95
96
96
# Same patch as below. See comment there.
97
97
if [ " ${CC} " = " clang" ]; then
98
- patch -p1 << "EOF "
98
+ if [ " ${PYTHON_MAJMIN_VERSION} " = " 3.9" ]; then
99
+ patch -p1 << "EOF "
100
+ diff --git a/configure b/configure
101
+ index 33ecb16f71..7f21822d97 100755
102
+ --- a/configure
103
+ +++ b/configure
104
+ @@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
105
+ fi
106
+ rm -f conftest.c conftest.out
107
+
108
+ -if test x$PLATFORM_TRIPLET != xdarwin; then
109
+ - MULTIARCH=$($CC --print-multiarch 2>/dev/null)
110
+ -fi
111
+ -
112
+ +MULTIARCH=
113
+
114
+ if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
115
+ if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
116
+ EOF
117
+ else
118
+ patch -p1 << "EOF "
99
119
diff --git a/configure b/configure
100
120
index 7cad0e2f98..50212236c4 100755
101
121
--- a/configure
@@ -110,6 +130,7 @@ index 7cad0e2f98..50212236c4 100755
110
130
111
131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
112
132
EOF
133
+ fi
113
134
fi
114
135
115
136
# When cross-compiling, we need to build a host Python that has working zlib
332
353
# configure. This is reported as https://bugs.python.org/issue45405. We nerf the
333
354
# check since we know what we're doing.
334
355
if [ " ${CC} " = " clang" ]; then
335
- patch -p1 << "EOF "
356
+ if [ " ${PYTHON_MAJMIN_VERSION} " = " 3.9" ]; then
357
+ patch -p1 << "EOF "
358
+ diff --git a/configure b/configure
359
+ index 33ecb16f71..7f21822d97 100755
360
+ --- a/configure
361
+ +++ b/configure
362
+ @@ -5354,10 +5354,7 @@ $as_echo "none" >&6; }
363
+ fi
364
+ rm -f conftest.c conftest.out
365
+
366
+ -if test x$PLATFORM_TRIPLET != xdarwin; then
367
+ - MULTIARCH=$($CC --print-multiarch 2>/dev/null)
368
+ -fi
369
+ -
370
+ +MULTIARCH=
371
+
372
+ if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
373
+ if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
374
+ EOF
375
+ else
376
+ patch -p1 << "EOF "
336
377
diff --git a/configure b/configure
337
378
index 7cad0e2f98..50212236c4 100755
338
379
--- a/configure
@@ -347,6 +388,7 @@ index 7cad0e2f98..50212236c4 100755
347
388
348
389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
349
390
EOF
391
+ fi
350
392
fi
351
393
352
394
# Add a make target to write the PYTHON_FOR_BUILD variable so we can
0 commit comments