diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-08-04 23:09:43 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-08-04 23:10:58 +0300 |
commit | 55a4fd60b1df233ad0b35ed302f4dd0e308d3551 (patch) | |
tree | dc2781e1751709f8c99e160fd160f152d5161ab3 /external/python3 | |
parent | 4c94b91718a65b34038b917dd29f738be3f4f6cb (diff) |
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
Diffstat (limited to 'external/python3')
-rw-r--r-- | external/python3/ExternalProject_python3.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/external/python3/ExternalProject_python3.mk b/external/python3/ExternalProject_python3.mk index e81166f3f772..757d782ba47c 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) \ |