[vlc-devel] [PATCH v2 05/17] apple: build: export -m{OS}-version-min in LDFLAGS
Alexandre Janniaux
ajanni at videolabs.io
Wed Apr 29 22:40:48 CEST 2020
Vanilla clang doesn't seem to take the -Wl,--ios-version-min flag into
account and adding this flag doesn't break apple clang build.
---
extras/package/apple/build.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/extras/package/apple/build.sh b/extras/package/apple/build.sh
index 6e2171623b1..beac4449b6e 100755
--- a/extras/package/apple/build.sh
+++ b/extras/package/apple/build.sh
@@ -309,7 +309,8 @@ set_host_envvars()
export CXXFLAGS="$clike_flags"
export OBJCFLAGS="$clike_flags"
- export LDFLAGS="$VLC_DEPLOYMENT_TARGET_LDFLAG -arch $VLC_HOST_ARCH"
+ # Vanilla clang doesn't use VLC_DEPLOYMENT_TAGET_LDFLAGS but only the CFLAGS variant
+ export LDFLAGS="$VLC_DEPLOYMENT_TARGET_LDFLAG $VLC_DEPLOYMENT_TARGET_CFLAG -arch $VLC_HOST_ARCH"
}
hostenv()
@@ -345,7 +346,8 @@ write_config_mak()
local vlc_cxxflags="$clike_flags"
local vlc_objcflags="$clike_flags"
- local vlc_ldflags="$VLC_DEPLOYMENT_TARGET_LDFLAG -arch $VLC_HOST_ARCH"
+ # Vanilla clang doesn't use VLC_DEPLOYMENT_TAGET_LDFLAGS but only the CFLAGS variant
+ local vlc_ldflags="$VLC_DEPLOYMENT_TARGET_LDFLAG $VLC_DEPLOYMENT_TARGET_CFLAG -arch $VLC_HOST_ARCH"
echo "Creating makefile..."
test -e config.mak && unlink config.mak
--
2.26.2
More information about the vlc-devel
mailing list