[vlc-devel] [PATCH 5/7] contrib/vpx: update iOS patch to manually toggle bitcode support
Felix Paul Kühne
fkuehne at videolan.org
Sun Nov 29 20:12:37 CET 2020
From: Felix Paul Kühne <felix at feepk.net>
Slightly change build rules to fix cross-compilation on macOS
---
contrib/src/vpx/libvpx-ios.patch | 19 ++++++++++++++++---
contrib/src/vpx/rules.mak | 6 ++++--
2 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/contrib/src/vpx/libvpx-ios.patch b/contrib/src/vpx/libvpx-ios.patch
index 909d0be917..f24f2b9edb 100644
--- a/contrib/src/vpx/libvpx-ios.patch
+++ b/contrib/src/vpx/libvpx-ios.patch
@@ -1,6 +1,6 @@
-diff -ruw libvpx-1.9.0.orig/build/make/configure.sh libvpx-1.9.0/build/make/configure.sh
---- libvpx-1.9.0.orig/build/make/configure.sh 2020-07-30 15:59:15.000000000 -0400
-+++ libvpx-1.9.0/build/make/configure.sh 2020-09-01 09:32:08.722717206 -0400
+diff -ru libvpx-1.9.0/build/make/configure.sh libvpx-1.9.0/build/make/configure.sh
+--- libvpx-1.9.0/build/make/configure.sh 2020-07-30 21:59:15.000000000 +0200
++++ libvpx-1.9.0/build/make/configure.sh 2020-11-29 18:05:12.000000000 +0100
@@ -832,96 +832,6 @@
# PIC is probably what we want when building shared libs
enabled shared && soft_enable pic
@@ -111,3 +111,16 @@ diff -ruw libvpx-1.9.0.orig/build/make/configure.sh libvpx-1.9.0/build/make/conf
for d in lib usr/lib usr/lib/system; do
try_dir="${alt_libc}/${d}"
[ -d "${try_dir}" ] && add_ldflags -L"${try_dir}"
+@@ -1133,12 +1037,6 @@
+ fi
+ ;;
+ esac
+-
+- if [ "$(show_darwin_sdk_major_version iphoneos)" -gt 8 ]; then
+- check_add_cflags -fembed-bitcode
+- check_add_asflags -fembed-bitcode
+- check_add_ldflags -fembed-bitcode
+- fi
+ fi
+
+ asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl"
diff --git a/contrib/src/vpx/rules.mak b/contrib/src/vpx/rules.mak
index c1db45ffb7..6a8ad44209 100644
--- a/contrib/src/vpx/rules.mak
+++ b/contrib/src/vpx/rules.mak
@@ -130,18 +130,20 @@ endif
ifdef HAVE_MACOSX
VPX_CONF += --extra-cflags="$(CFLAGS) $(EXTRA_CFLAGS)"
endif
-ifdef HAVE_IOS
+ifdef HAVE_DARWIN_OS
VPX_CONF += --enable-vp8-decoder --disable-tools
VPX_CONF += --extra-cflags="$(CFLAGS) $(EXTRA_CFLAGS)"
+ifdef HAVE_IOS
ifdef HAVE_TVOS
VPX_LDFLAGS := -L$(IOS_SDK)/usr/lib -isysroot $(IOS_SDK) -mtvos-version-min=9.0
else
VPX_LDFLAGS := -L$(IOS_SDK)/usr/lib -isysroot $(IOS_SDK) -miphoneos-version-min=8.4
endif
+endif
ifeq ($(ARCH),aarch64)
VPX_LDFLAGS += -arch arm64
else
-ifndef HAVE_IOS
+ifndef HAVE_DARWIN_OS
VPX_LDFLAGS += -arch $(ARCH)
endif
endif
--
2.24.3 (Apple Git-128)
More information about the vlc-devel
mailing list