[vlc-commits] mac: update build.sh
David Fuhrmann
git at videolan.org
Sat Nov 29 12:32:12 CET 2014
vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Nov 29 12:29:06 2014 +0100| [01ab5355e619274c0cd9b1f401c21262cd7b672b] | committer: Jean-Baptiste Kempf
mac: update build.sh
Auto-detect current osx version, overwrite path to avoid influences
from macports or homebrew.
(cherry picked from commit 054453dd1558f8385acb9ff57725d6f7f0db4362)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=01ab5355e619274c0cd9b1f401c21262cd7b672b
---
extras/package/macosx/build.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index abac1e5..e6d810f 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -11,7 +11,7 @@ info()
ARCH="x86_64"
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
usage()
@@ -90,7 +90,7 @@ export CXX="xcrun clang++"
export OBJC="xcrun clang"
export OSX_VERSION
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
More information about the vlc-commits
mailing list