[vlc-commits] contrib/x264: fix cross-compilation for aarch64 on macOS
Felix Paul Kühne
git at videolan.org
Thu Dec 3 06:06:08 UTC 2020
vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sun Nov 29 20:12:39 2020 +0100| [7762094891a51bfb3cbea835ccc995bea48dcf0b] | committer: Felix Paul Kühne
contrib/x264: fix cross-compilation for aarch64 on macOS
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7762094891a51bfb3cbea835ccc995bea48dcf0b
---
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))
More information about the vlc-commits
mailing list