summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform/macosx.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-30 15:36:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-30 15:37:11 +0200
commit979e2c8f8b9325a5c75bfc1f388aa8f69b988d2c (patch)
tree978118f7c3b0aabfa58786561b624b30c75be3c5 /solenv/gbuild/platform/macosx.mk
parent62892c5cacd0b26f35e567f5a95867a15c807584 (diff)
-fthreadsafe-statics uses a single lock on Mac OS X and thus leads to deadlock.
Diffstat (limited to 'solenv/gbuild/platform/macosx.mk')
-rw-r--r--solenv/gbuild/platform/macosx.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index b9347d194130..ba1438a80fad 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -109,6 +109,10 @@ ifeq ($(HAVE_GCC_NO_LONG_DOUBLE),TRUE)
gb_CXXFLAGS += -Wno-long-double
endif
+ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)
+gb_CXXFLAGS += -fno-threadsafe-statics
+endif
+
# these are to get g++ to switch to Objective-C++ mode
# (see toolkit module for a case where it is necessary to do it this way)
gb_OBJCXXFLAGS := -x objective-c++ -fobjc-exceptions