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

David Fuhrmann git at videolan.org
Sun Nov 15 18:23:21 CET 2020


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

macOS build.sh: Simplify detection of default SDKROOT

This fixes the build on macOS Catalina.

(cherry picked from commit 48a31f50641027dd5c9c341b0de084630a7023c8)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=258aeb918a484022bbd21173359b2c28224819be
---

 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 4508354a9f..88d57aa4a2 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -10,9 +10,9 @@ info()
 
 ARCH="x86_64"
 MINIMAL_OSX_VERSION="10.7"
-OSX_VERSION=`xcrun --show-sdk-version`
+OSX_VERSION=$(xcrun --show-sdk-version)
 OSX_KERNELVERSION=`uname -r | cut -d. -f1`
-SDKROOT=`xcode-select -print-path`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk
+SDKROOT=$(xcrun --show-sdk-path)
 VLCBUILDDIR=""
 
 CORE_COUNT=`getconf NPROCESSORS_ONLN 2>&1`



More information about the vlc-commits mailing list