diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-18 09:01:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-18 20:01:07 +0100 |
commit | d9ce9150c45763f61b63728b663ebca93d35f9eb (patch) | |
tree | 54a0e595a86c2d4be89b7821e0d9675887ded00e | |
parent | a7c5fac2288e67e7d0fae667c8da590d28e35e52 (diff) |
bubble down configure test findings on visibility
-rwxr-xr-x | solenv/gbuild/platform/unxgcc.mk | 22 |
1 files changed, 18 insertions, 4 deletions
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) |