summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-05 09:54:17 (GMT)
committerGitHub <noreply@github.com>2022-01-05 09:54:17 (GMT)
commitcae55542d23e606dde9819d5dadd7430085fcc77 (patch)
tree6aa212394695842e7b8d283a238ff4d48aa8aa5c /configure
parent91bc6f9615eabb10090e2e4f0fe5913885a29c8c (diff)
downloadcpython-cae55542d23e606dde9819d5dadd7430085fcc77.zip
cpython-cae55542d23e606dde9819d5dadd7430085fcc77.tar.gz
cpython-cae55542d23e606dde9819d5dadd7430085fcc77.tar.bz2
bpo-46263: Don't use MULTIARCH on FreeBSD (#30410)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 14 insertions, 3 deletions
diff --git a/configure b/configure
index eca6351..b99b9f5 100755
--- a/configure
+++ b/configure
@@ -6091,10 +6091,20 @@ $as_echo "none" >&6; }
fi
rm -f conftest.c conftest.out
-if test x$PLATFORM_TRIPLET != xdarwin; then
- MULTIARCH=$($CC --print-multiarch 2>/dev/null)
-fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
+$as_echo_n "checking for multiarch... " >&6; }
+case $ac_sys_system in #(
+ Darwin*) :
+ MULTIARCH="" ;; #(
+ FreeBSD*) :
+ MULTIARCH="" ;; #(
+ *) :
+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
+$as_echo "$MULTIARCH" >&6; }
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
@@ -6104,6 +6114,7 @@ elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
MULTIARCH=$PLATFORM_TRIPLET
fi
+
if test x$MULTIARCH != x; then
MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
fi