Commit e5a29593 authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

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.
parent 2b62f417
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment