Skip to content

Instantly share code, notes, and snippets.

@kktse
Created May 9, 2022 17:06
Show Gist options
  • Save kktse/c0c7a410ae8872042f2faf36670d35d7 to your computer and use it in GitHub Desktop.
Save kktse/c0c7a410ae8872042f2faf36670d35d7 to your computer and use it in GitHub Desktop.
diff --git a/configure b/configure
index ffa61c1dc5..8ddf68df02 100755
--- a/configure
+++ b/configure
@@ -5196,9 +5196,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
@@ -5357,6 +5354,10 @@ $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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment