Commit 054453dd authored by David Fuhrmann's avatar David Fuhrmann

mac: update build.sh

Auto-detect current osx version, overwrite path to avoid influences
from macports or homebrew.
parent c07294b1
...@@ -11,7 +11,7 @@ info() ...@@ -11,7 +11,7 @@ info()
ARCH="x86_64" ARCH="x86_64"
MINIMAL_OSX_VERSION="10.6" MINIMAL_OSX_VERSION="10.6"
OSX_VERSION="10.8" OSX_VERSION=`xcrun --show-sdk-version`
SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
usage() usage()
...@@ -90,7 +90,7 @@ export CXX="xcrun clang++" ...@@ -90,7 +90,7 @@ export CXX="xcrun clang++"
export OBJC="xcrun clang" export OBJC="xcrun clang"
export OSX_VERSION export OSX_VERSION
export SDKROOT export SDKROOT
export PATH="${vlcroot}/extras/tools/build/bin:$PATH" export PATH="${vlcroot}/extras/tools/build/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"
TRIPLET=$ARCH-apple-darwin10 TRIPLET=$ARCH-apple-darwin10
......
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