[vlc-devel] [PATCH v2 04/17] macosx: env.build.sh: use xcrun to find host tools

Alexandre Janniaux ajanni at videolabs.io
Wed Apr 29 22:40:47 CEST 2020


It allows finding the correct ar when cross-compiling from Linux and
allows simplifying the contrib Makefile.
---
 extras/package/macosx/env.build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/package/macosx/env.build.sh b/extras/package/macosx/env.build.sh
index c749f8dd374..755722fb9b1 100755
--- a/extras/package/macosx/env.build.sh
+++ b/extras/package/macosx/env.build.sh
@@ -39,6 +39,9 @@ vlcSetBaseEnvironment() {
     export CXX="$(xcrun --find clang++)"
     export OBJC="$(xcrun --find clang)"
     export OBJCXX="$(xcrun --find clang++)"
+    export AR="$(xcrun --find ar)"
+    export RANLIB="$(xcrun --find ranlib)"
+    export NM="$(xcrun --find nm)"
 
     python3Path=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
     if [ ! -d "$python3Path" ]; then
-- 
2.26.2



More information about the vlc-devel mailing list