Skip to content

Commit

Permalink
Add python fixes for new macOS builds
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 11, 2022
1 parent 7ff9bbd commit 876f672
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions patches/Python/macos-universal
26 changes: 26 additions & 0 deletions patches/Python/macos/01_fix-build-triplet.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/configure b/configure
index 2db11e6..bccbff9 100755
--- a/configure
+++ b/configure
@@ -5184,9 +5184,6 @@ $as_echo "$as_me:
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
$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; }
cat >> conftest.c <<EOF
@@ -5343,6 +5340,11 @@ $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
+
+
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

0 comments on commit 876f672

Please sign in to comment.