diff options
author | Memphiz <memphis@machzwo.de> | 2016-09-23 14:39:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-23 14:39:16 +0100 |
commit | 737bf7b143099fe8e90f8f7d8bf4bb620f961585 (patch) | |
tree | 79bd2b4ebedeb68cc1887cba92ed637fa0d9392e /tools | |
parent | 0da08944886ad0fb0c71efc13382a463d3de2e7c (diff) | |
parent | ec005d70472f2963e335f35c1463c4afe262eaa4 (diff) |
Merge pull request #10530 from Memphiz/xcode8
[osx] - add support for Xcode 8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/configure.ac | 1 | ||||
-rw-r--r-- | tools/depends/native/config.site.native.in | 9 | ||||
-rw-r--r-- | tools/depends/target/config-binaddons.site.in | 9 | ||||
-rw-r--r-- | tools/depends/target/config.site.in | 9 | ||||
-rw-r--r-- | tools/depends/target/gnutls/Makefile | 3 | ||||
-rw-r--r-- | tools/depends/target/samba-gplv3/Makefile | 3 |
6 files changed, 34 insertions, 0 deletions
diff --git a/tools/depends/configure.ac b/tools/depends/configure.ac index fb0bd6dad1..9c8ddade7b 100644 --- a/tools/depends/configure.ac +++ b/tools/depends/configure.ac @@ -250,6 +250,7 @@ case $host in 10.9);; 10.10);; 10.11);; + 10.12);; *) AC_MSG_ERROR(error in configure of --with-sdk=$use_sdk) esac diff --git a/tools/depends/native/config.site.native.in b/tools/depends/native/config.site.native.in index edbaff789b..007ee5724a 100644 --- a/tools/depends/native/config.site.native.in +++ b/tools/depends/native/config.site.native.in @@ -24,3 +24,12 @@ fi LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH NASM=@prefix@/@tool_dir@/bin/yasm + +if test "@platform_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 + ac_cv_func_clock_gettime=no + ac_cv_func_getentropy=no +fi + diff --git a/tools/depends/target/config-binaddons.site.in b/tools/depends/target/config-binaddons.site.in index a8afdd7c09..d71c378810 100644 --- a/tools/depends/target/config-binaddons.site.in +++ b/tools/depends/target/config-binaddons.site.in @@ -118,6 +118,15 @@ if test "@platform_os@" = "android"; then fi +if test "@platform_os@" = "osx" ; then + # Xcode 8 + 10.11, clock_gettime getentropy is present + # in 10.12 but will get wrongly detected if building on 10.11 + ac_cv_search_clock_gettime=no + ac_cv_func_clock_gettime=no + ac_cv_func_getentropy=no +fi + + if test "@platform_os@" = "ios"; then # tweaks for libffi (ios must use llvm-gcc-4.2) if test "${PACKAGE_NAME}" = "libffi" ; then diff --git a/tools/depends/target/config.site.in b/tools/depends/target/config.site.in index a3a3bc22d7..1a9961c2ae 100644 --- a/tools/depends/target/config.site.in +++ b/tools/depends/target/config.site.in @@ -140,6 +140,15 @@ if test "@platform_os@" = "android"; then fi +if test "@platform_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 + ac_cv_func_clock_gettime=no + ac_cv_func_getentropy=no +fi + + if test "@platform_os@" = "ios"; then # tweaks for libffi (ios must use llvm-gcc-4.2) if test "${PACKAGE_NAME}" = "libffi" ; then diff --git a/tools/depends/target/gnutls/Makefile b/tools/depends/target/gnutls/Makefile index ae27663132..1a7c2431c8 100644 --- a/tools/depends/target/gnutls/Makefile +++ b/tools/depends/target/gnutls/Makefile @@ -33,6 +33,9 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(PLATFORM); patch -p0 < ../size-max.patch cd $(PLATFORM); $(CONFIGURE) +ifeq ($(OS),osx) + cd $(PLATFORM); sed -ie "s/HAVE_GETENTROPY/HAVE_GETENTROPY_NOPE/" config.h +endif $(LIBDYLIB): $(PLATFORM) $(MAKE) -C $(PLATFORM) diff --git a/tools/depends/target/samba-gplv3/Makefile b/tools/depends/target/samba-gplv3/Makefile index 85ae924fa8..17a5224f2c 100644 --- a/tools/depends/target/samba-gplv3/Makefile +++ b/tools/depends/target/samba-gplv3/Makefile @@ -52,6 +52,9 @@ endif ifeq ($(TARGET_PLATFORM),appletvos) cd $(PLATFORM); patch -p0 < ../no_fork_and_exec.patch endif +ifeq ($(OS),osx) + sed -ie "s|ifndef HAVE_CLOCK_GETTIME|if !defined(HAVE_CLOCK_GETTIME) \&\& !defined(CLOCK_REALTIME)|" "$(PLATFORM)/lib/replace/system/time.h" +endif cd $(PLATFORM)/source3; $(CONFIGURE) $(LIBDYLIB): $(PLATFORM) |