diff options
author | Rechi <Rechi@users.noreply.github.com> | 2018-04-26 12:00:00 +0200 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2018-04-26 12:00:00 +0200 |
commit | 7c1a959883a87a927fca5d64eec6b31d61155393 (patch) | |
tree | a615662963b47918625479b40dd54a557c32ac67 | |
parent | 6e42a11d33845fdfcec98440538d136ea8bedf91 (diff) |
[depends][darwin] make native settings dependent on build
-rw-r--r-- | tools/depends/configure.ac | 2 | ||||
-rw-r--r-- | tools/depends/native/config.site.native.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac index 9581648b26..afb8a81666 100644 --- a/tools/depends/configure.ac +++ b/tools/depends/configure.ac @@ -184,6 +184,7 @@ case $build in ;; *darwin*) build_os="osx" + native_platform_min_version=-mmacosx-version-min=`sw_vers | grep ProductVersion | sed -E "s/.*:.*(10\..*)\.?.*/\1/"` ;; *) AC_MSG_ERROR(unsupported native build platform: $build) @@ -257,7 +258,6 @@ case $host in prefix=/Users/Shared/xbmc-depends fi - native_platform_min_version=-mmacosx-version-min=`sw_vers | grep ProductVersion | sed -E "s/.*:.*(10\..*)\.?.*/\1/"` use_xcodepath=`xcode-select -print-path` use_xcodebuild=$use_xcodepath/usr/bin/xcodebuild AC_MSG_RESULT(found xcodebuild at $use_xcodebuild) diff --git a/tools/depends/native/config.site.native.in b/tools/depends/native/config.site.native.in index d4922cae58..deef5955d3 100644 --- a/tools/depends/native/config.site.native.in +++ b/tools/depends/native/config.site.native.in @@ -25,7 +25,7 @@ fi LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH NASM=@prefix@/@tool_dir@/bin/yasm -if test "@platform_os@" = "osx" ; then +if test "@build_os@" = "osx" ; then # Xcode 8 + 10.11, clock_gettime and getentropy is present # in 10.12 but will get wrongly detected if building on 10.11 ac_cv_search_clock_gettime=no |