[vlc-devel] [PATCH 3/7] macosx: env.build.sh: use xcrun to find ar and ranlib

Alexandre Janniaux ajanni at videolabs.io
Fri Apr 24 17:02:01 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/extras/package/macosx/env.build.sh b/extras/package/macosx/env.build.sh
index c749f8dd37..bc4587c8cd 100755
--- a/extras/package/macosx/env.build.sh
+++ b/extras/package/macosx/env.build.sh
@@ -39,6 +39,8 @@ 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)"
 
     python3Path=$(echo /Library/Frameworks/Python.framework/Versions/3.*/bin | awk '{print $1;}')
     if [ ! -d "$python3Path" ]; then
-- 
2.26.1



More information about the vlc-devel mailing list