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

Felix Paul Kühne fkuehne at videolan.org
Mon Nov 30 19:18:45 CET 2020


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

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

diff --git a/contrib/src/x264/rules.mak b/contrib/src/x264/rules.mak
index 76dbe3440d..408d61c306 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,11 @@ X264CONF += --disable-asm
 endif
 endif
 endif
+ifdef HAVE_DARWIN_OS
+ifeq ($(ARCH),aarch64)
+X264CONF += --extra-asflags="-arch $(PLATFORM_SHORT_ARCH)"
+endif
+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