[vlc-commits] macosx: env.build.sh: use xcrun to find host tools
Alexandre Janniaux
git at videolan.org
Sun May 3 01:05:09 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Apr 24 17:02:01 2020 +0200| [e5a2959396865a15d1b476385a15be4e7f787ecc] | committer: Alexandre Janniaux
macosx: env.build.sh: use xcrun to find host tools
It allows finding the correct ar when cross-compiling from Linux and
allows simplifying the contrib Makefile.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5a2959396865a15d1b476385a15be4e7f787ecc
---
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 c749f8dd37..755722fb9b 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
More information about the vlc-commits
mailing list