From d9ce9150c45763f61b63728b663ebca93d35f9eb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 18 Apr 2011 09:01:37 +0100 Subject: bubble down configure test findings on visibility --- solenv/gbuild/platform/unxgcc.mk | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'solenv') diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 11a020503c7f..b58e4ba6c7f9 100755 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -59,7 +59,6 @@ endif gb_COMPILERDEFS := \ -D$(COM) \ - -DHAVE_GCC_VISIBILITY_FEATURE \ -DCPPU_ENV=gcc3 \ -DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH) \ @@ -71,7 +70,6 @@ gb_CFLAGS := \ -fPIC \ -fmessage-length=0 \ -fno-common \ - -fvisibility=hidden \ -pipe \ gb_CXXFLAGS := \ @@ -85,10 +83,26 @@ gb_CXXFLAGS := \ -fPIC \ -fmessage-length=0 \ -fno-common \ - -fvisibility-inlines-hidden \ - -fvisibility=hidden \ -pipe \ +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 + gb_CCVER := $(shell $(gb_CC) -dumpversion | $(gb_AWK) -F. -- '{ print $$1*10000+$$2*100+$$3 }') gb_StrictAliasingUnsafe := $(shell expr $(gb_CCVER) \< 40600) -- cgit