summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-14 16:18:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-14 16:18:49 +0200
commit15f92676f74d58b0af8578d6c45d0faa3de19164 (patch)
treed0ad20df508cc39e3babadaa3af78e2c6c8126fe /external
parent486f9064367fd99029ba34a36486e3d70773131a (diff)
external/firebird: Hack around detection of clock_gettime on Mac OS X
...where the 10.12 SDK includes clock_gettime, marked as __attribute__((availability(macosx,introduced=10.12))) in time.h. However, the way firebird's configure checks for it, it gets detected as available regardless of the used -mmacosx-version-min value (and even if the configure check would go via the time.h header, the availability attribute would only cause a -Wpartial-availability warning, not an error, so we'd need to pass CFLAGS=-Werror=partial-availability into firebird's configure.) Change-Id: I67e12743e1df0574e7fc4b2121add9fe1fb7677b
Diffstat (limited to 'external')
-rw-r--r--external/firebird/ExternalProject_firebird.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/external/firebird/ExternalProject_firebird.mk b/external/firebird/ExternalProject_firebird.mk
index 2fe2e8bcb673..09c4463f2f4c 100644
--- a/external/firebird/ExternalProject_firebird.mk
+++ b/external/firebird/ExternalProject_firebird.mk
@@ -86,6 +86,11 @@ $(call gb_ExternalProject_get_state_target,firebird,build):
, \
--enable-shared --disable-static \
) \
+ $(if $(filter MACOSX,$(OS)), \
+ $(if $(filter 1, \
+ $(shell expr '$(MAC_OS_X_VERSION_MIN_REQUIRED)' \
+ '<' 101200)), \
+ ac_cv_func_clock_gettime=no)) \
&& if [ -n "$${FB_CPU_ARG}" ]; then \
$(MAKE_PRE) $(MAKE) $(INVOKE_FPA) SHELL='$(SHELL)' $(MAKE_POST); \
else \