diff options
Diffstat (limited to 'solenv/gbuild/platform/macosx.mk')
-rw-r--r-- | solenv/gbuild/platform/macosx.mk | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk index 93cc45097dfe..4d5594b986e0 100644 --- a/solenv/gbuild/platform/macosx.mk +++ b/solenv/gbuild/platform/macosx.mk @@ -69,24 +69,6 @@ gb_CXXFLAGS := \ #-fsigned-char \ might be removed? #-malign-natural \ might be removed? -ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE) -gb_COMPILERDEFS += \ - -DHAVE_GCC_VISIBILITY_FEATURE \ - -gb_CFLAGS += \ - -fvisibility=hidden - -gb_CXXFLAGS += \ - -fvisibility=hidden \ - -ifneq ($(HAVE_GCC_VISIBILITY_BROKEN),TRUE) -gb_CXXFLAGS += \ - -fvisibility-inlines-hidden \ - -endif - -endif - ifeq ($(HAVE_SFINAE_ANONYMOUS_BROKEN),TRUE) gb_COMPILERDEFS += \ -DHAVE_SFINAE_ANONYMOUS_BROKEN \ @@ -124,6 +106,7 @@ $(call gb_Helper_abbreviate_dirs,\ mkdir -p $(dir $(1)) $(dir $(4)) && \ $(gb_CXX) \ $(DEFS) \ + $(if $(VISIBILITY),,$(gb_VISIBILITY_FLAGS)) \ $(if $(WARNINGS_NOT_ERRORS),,$(gb_CXXFLAGS_WERROR)) \ $(T_OBJCXXFLAGS) \ -c $(3) \ @@ -142,6 +125,7 @@ $(call gb_Helper_abbreviate_dirs,\ mkdir -p $(dir $(1)) $(dir $(4)) && \ $(gb_CC) \ $(DEFS) \ + $(if $(VISIBILITY),,$(gb_VISIBILITY_FLAGS)) \ $(if $(WARNINGS_NOT_ERRORS),,$(gb_CFLAGS_WERROR)) \ $(T_OBJCFLAGS) \ -c $(3) \ |