8000 bpo-46263: Don't use MULTIARCH on FreeBSD · python/cpython@cfdffc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfdffc4

Browse files
committed
bpo-46263: Don't use MULTIARCH on FreeBSD
1 parent 91bc6f9 commit cfdffc4

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``configure`` no longer sets ``MULTIARCH`` on FreeBSD platforms.

configure

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6091,9 +6091,15 @@ $as_echo "none" >&6; }
60916091
fi
60926092
rm -f conftest.c conftest.out
60936093

6094-
if test x$PLATFORM_TRIPLET != xdarwin; then
6095-
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
6096-
fi
6094+
case $ac_sys_system in #(
6095+
Darwin*) :
6096+
MULTIARCH="" ;; #(
6097+
FreeBSD*) :
6098+
MULTIARCH="" ;; #(
6099+
*) :
6100+
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
6101+
;;
6102+
esac
60976103

60986104

60996105
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
@@ -6104,6 +6110,7 @@ elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
61046110
MULTIARCH=$PLATFORM_TRIPLET
61056111
fi
61066112

6113+
61076114
if test x$MULTIARCH != x; then
61086115
MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
61096116
fi

configure.ac

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,12 @@ else
987987
fi
988988
rm -f conftest.c conftest.out
989989

990-
if test x$PLATFORM_TRIPLET != xdarwin; then
991-
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
992-
fi
993-
AC_SUBST(MULTIARCH)
990+
AS_CASE([$ac_sys_system],
991+
[Darwin*], [MULTIARCH=""],
992+
[FreeBSD*], [MULTIARCH=""],
993+
[MULTIARCH=$($CC --print-multiarch 2>/dev/null)]
994+
)
995+
AC_SUBST([MULTIARCH])
994996

995997
if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then
996998
if test x$PLATFORM_TRIPLET != x$MULTIARCH; then
@@ -1000,6 +1002,7 @@ elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then
10001002
MULTIARCH=$PLATFORM_TRIPLET
10011003
fi
10021004
AC_SUBST(PLATFORM_TRIPLET)
1005+
10031006
if test x$MULTIARCH != x; then
10041007
MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\""
10051008
fi

0 commit comments

Comments
 (0)
0