[vlc-devel] [PATCH 1/7] apple: build: split tools and flags env vars

Alexandre Janniaux ajanni at videolabs.io
Fri Apr 24 17:01:59 CEST 2020


CC is needed when calling `set_host_triplet` to compute the
VLC_HOST_TRIPLET variable, so it must be set before.
---
 extras/package/apple/build.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/extras/package/apple/build.sh b/extras/package/apple/build.sh
index 3822f4b18e..f0f070948f 100755
--- a/extras/package/apple/build.sh
+++ b/extras/package/apple/build.sh
@@ -299,7 +299,10 @@ set_host_envvars()
     export OBJCFLAGS="$clike_flags"
 
     export LDFLAGS="$VLC_DEPLOYMENT_TARGET_LDFLAG -arch $VLC_HOST_ARCH"
+}
 
+set_hosttools_envvar()
+{
     # Tools to be used
     export CC="clang"
     export CPP="clang -E"
@@ -455,6 +458,9 @@ validate_sdk_name "$VLC_APPLE_SDK_NAME"
 # Validate architecture argument
 validate_architecture "$VLC_HOST_ARCH"
 
+# Fetch tools, as CC is needed for set_host_triplet
+set_hosttools_envvar
+
 # Set triplet (needs to be called after validating the arch)
 set_host_triplet "$VLC_HOST_ARCH"
 
-- 
2.26.1



More information about the vlc-devel mailing list