Skip to content

Commit

Permalink
[depends][darwin] make native settings dependent on build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Apr 26, 2018
1 parent 6e42a11 commit 7c1a959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/depends/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tools/depends/native/config.site.native.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c1a959

Please sign in to comment.