[vlc-devel] [PATCH 7/7] contrib/x264: fix cross-compilation for aarch64 on macOS

Felix Paul Kühne fkuehne at videolan.org
Sun Nov 29 20:12:39 CET 2020


From: Felix Paul Kühne <felix at feepk.net>

---
 contrib/src/x264/rules.mak | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/src/x264/rules.mak b/contrib/src/x264/rules.mak
index 76dbe3440d..f5f59a4298 100644
--- a/contrib/src/x264/rules.mak
+++ b/contrib/src/x264/rules.mak
@@ -45,7 +45,9 @@ X264_AS = AS="$(CC)"
 endif
 endif
 ifdef HAVE_CROSS_COMPILE
+ifndef HAVE_DARWIN_OS
 X264CONF += --cross-prefix="$(HOST)-"
+endif
 ifdef HAVE_ANDROID
 # broken text relocations
 ifeq ($(ANDROID_ABI), x86)
@@ -56,6 +58,9 @@ X264CONF += --disable-asm
 endif
 endif
 endif
+ifdef HAVE_DARWIN_OS
+X264CONF += --extra-asflags="-arch $(PLATFORM_SHORT_ARCH)"
+endif
 
 $(TARBALLS)/x262-git.tar.xz:
 	$(call download_git,$(X262_GITURL))
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list