Issue 44752 - Add visibility to unxlngx4.mk
Summary: Add visibility to unxlngx4.mk
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: current
Hardware: PC (x86_64) Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: pavel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-10 21:49 UTC by pavel
Modified: 2006-10-24 11:10 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2005-03-10 21:49:33 UTC
This is needed. I'll commit it tomorrow.

--- unxlngx4.mk	10 bře 2005 20:04:07 +0100	1.5.24.3
+++ unxlngx4.mk	10 bře 2005 22:25:07 +0100	
@@ -74,6 +74,11 @@
 # _PTHREADS is needed for the stl
 CDEFS+=-DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400
 
+# enable visibility define in "sal/types.h"
+.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+CDEFS += -DHAVE_GCC_VISIBILITY_FEATURE
+.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+
 # this is a platform with JAVA support
 .IF "$(SOLAR_JAVA)"!=""
 JAVADEF=-DSOLAR_JAVA
@@ -108,6 +113,10 @@
 CFLAGSCXX= -pipe -fno-use-cxa-atexit
 CFLAGSCXX+= -Wno-ctor-dtor-privacy
 
+.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+CFLAGSCXX += -fvisibility-inlines-hidden
+.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+
 # HACK: enable Hamburg developers to build on glibc-2.2 machines but compile
vs. glibc-2.1 headers
 .IF "$(BUILD_SPECIAL)"==""
 CFLAGSCXX+=-include preinclude.h
Comment 1 pavel 2005-03-12 10:02:44 UTC
Fixed in ooo64bit02.
Comment 2 pavel 2006-10-24 11:10:12 UTC
closing.