[vlc-commits] macOS build.sh: use current kernel version for building triplet
David Fuhrmann
git at videolan.org
Mon Jul 17 19:25:20 CEST 2017
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul 9 19:13:36 2017 +0200| [6df52accbd841427e32b6983a246d82f13e1bcaf] | committer: David Fuhrmann
macOS build.sh: use current kernel version for building triplet
Uses correct kernel version for contribs triplet, instead of
hardcoding one.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6df52accbd841427e32b6983a246d82f13e1bcaf
---
extras/package/macosx/build.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/extras/package/macosx/build.sh b/extras/package/macosx/build.sh
index 10d63697d9..aadf098c94 100755
--- a/extras/package/macosx/build.sh
+++ b/extras/package/macosx/build.sh
@@ -12,6 +12,7 @@ info()
ARCH="x86_64"
MINIMAL_OSX_VERSION="10.7"
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
usage()
@@ -93,7 +94,7 @@ builddir=`pwd`
info "Building in \"$builddir\""
-TRIPLET=$ARCH-apple-darwin15
+TRIPLET=$ARCH-apple-darwin$OSX_KERNELVERSION
export CC="`xcrun --find clang`"
export CXX="`xcrun --find clang++`"
More information about the vlc-commits
mailing list