[vlc-commits] macOS build.sh: Simplify detection of default SDKROOT

David Fuhrmann git at videolan.org
Wed May 30 23:26:49 CEST 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Wed May 30 23:25:48 2018 +0200| [48a31f50641027dd5c9c341b0de084630a7023c8] | committer: David Fuhrmann

macOS build.sh: Simplify detection of default SDKROOT

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48a31f50641027dd5c9c341b0de084630a7023c8
---

 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 e628c03788..a993b114f1 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -14,8 +14,8 @@ source "$SCRIPTDIR/env.build.sh" "none"
 
 ARCH="x86_64"
 MINIMAL_OSX_VERSION="10.10"
-OSX_VERSION=`xcrun --show-sdk-version`
-SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
+OSX_VERSION=$(xcrun --show-sdk-version)
+SDKROOT=$(xcrun --show-sdk-path)
 VLCBUILDDIR=""
 
 CORE_COUNT=`getconf NPROCESSORS_ONLN 2>&1`



More information about the vlc-commits mailing list