e0360bb
From e33537190f7a57ddcfe1382d330fa5d28581f16b Mon Sep 17 00:00:00 2001
e0360bb
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
e0360bb
Date: Mon, 18 Apr 2011 09:01:37 +0100
e0360bb
Subject: [PATCH] bubble down configure test findings on visibility
e0360bb
e0360bb
---
e0360bb
 solenv/gbuild/platform/unxgcc.mk |   22 ++++++++++++++++++----
e0360bb
 1 files changed, 18 insertions(+), 4 deletions(-)
e0360bb
e0360bb
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
e0360bb
index 11a0205..b58e4ba 100755
e0360bb
--- a/solenv/gbuild/platform/unxgcc.mk
e0360bb
+++ b/solenv/gbuild/platform/unxgcc.mk
e0360bb
@@ -59,7 +59,6 @@ endif
e0360bb
 
e0360bb
 gb_COMPILERDEFS := \
e0360bb
 	-D$(COM) \
e0360bb
-	-DHAVE_GCC_VISIBILITY_FEATURE \
e0360bb
 	-DCPPU_ENV=gcc3 \
e0360bb
 	-DGXX_INCLUDE_PATH=$(GXX_INCLUDE_PATH) \
e0360bb
 
e0360bb
@@ -71,7 +70,6 @@ gb_CFLAGS := \
e0360bb
 	-fPIC \
e0360bb
 	-fmessage-length=0 \
e0360bb
 	-fno-common \
e0360bb
-	-fvisibility=hidden \
e0360bb
 	-pipe \
e0360bb
 
e0360bb
 gb_CXXFLAGS := \
e0360bb
@@ -85,10 +83,26 @@ gb_CXXFLAGS := \
e0360bb
 	-fPIC \
e0360bb
 	-fmessage-length=0 \
e0360bb
 	-fno-common \
e0360bb
-	-fvisibility-inlines-hidden \
e0360bb
-	-fvisibility=hidden \
e0360bb
 	-pipe \
e0360bb
 
e0360bb
+ifeq ($(HAVE_GCC_VISIBILITY_FEATURE),TRUE)
e0360bb
+gb_COMPILERDEFS += \
e0360bb
+        -DHAVE_GCC_VISIBILITY_FEATURE \
e0360bb
+
e0360bb
+gb_CFLAGS += \
e0360bb
+        -fvisibility=hidden
e0360bb
+
e0360bb
+gb_CXXFLAGS += \
e0360bb
+	-fvisibility=hidden \
e0360bb
+
e0360bb
+ifneq ($(HAVE_GCC_VISIBILITY_BROKEN),TRUE)
e0360bb
+gb_CXXFLAGS += \
e0360bb
+        -fvisibility-inlines-hidden \
e0360bb
+
e0360bb
+endif
e0360bb
+
e0360bb
+endif
e0360bb
+
e0360bb
 gb_CCVER := $(shell $(gb_CC) -dumpversion | $(gb_AWK) -F. -- '{ print $$1*10000+$$2*100+$$3 }')
e0360bb
 gb_StrictAliasingUnsafe := $(shell expr $(gb_CCVER) \< 40600)
e0360bb
 
e0360bb
-- 
e0360bb
1.7.4.2
e0360bb