[Libreoffice-commits] core.git: external/python3

Tor Lillqvist tml at collabora.com
Thu Aug 4 20:14:25 UTC 2016


 external/python3/ExternalProject_python3.mk |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 55a4fd60b1df233ad0b35ed302f4dd0e308d3551
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Aug 4 23:09:43 2016 +0300

    Don't use functions introduced in 10.12 when building to run on older
    
    getentropy() and clock_gettime() are new in macOS Sierra (10.12).
    
    Change-Id: I93640bbf20056d925c3116df336aeaebaaffda18

diff --git a/external/python3/ExternalProject_python3.mk b/external/python3/ExternalProject_python3.mk
index e81166f..757d782 100644
--- a/external/python3/ExternalProject_python3.mk
+++ b/external/python3/ExternalProject_python3.mk
@@ -57,6 +57,12 @@ endif
 
 $(call gb_ExternalProject_get_state_target,python3,build) :
 	$(call gb_ExternalProject_run,build,\
+		$(if $(filter MACOSX,$(OS)), \
+			$(if $(filter 10.8 10.9 10.10 10.11,$(MACOSX_DEPLOYMENT_TARGET)), \
+				ac_cv_func_getentropy=no \
+				ac_cv_func_clock_gettime=no \
+			) \
+		) \
 		./configure \
 		$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
 		$(if $(ENABLE_VALGRIND),--with-valgrind) \


More information about the Libreoffice-commits mailing list