[Mesa-dev] [PATCH 2/5] amd/addrlib: hide private symbols via VISIBILITY_CXXFLAGS

Emil Velikov emil.l.velikov at gmail.com
Wed Oct 12 18:05:30 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Private/internal symbols should never not be exported. Using the
CXXFLAGS cuts ~300 exported symbols and ~23K from libvulkan_radeon.so.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/amd/Makefile.addrlib.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/Makefile.addrlib.am b/src/amd/Makefile.addrlib.am
index 434e692..64823fc 100644
--- a/src/amd/Makefile.addrlib.am
+++ b/src/amd/Makefile.addrlib.am
@@ -30,6 +30,9 @@ addrlib_libamdgpu_addrlib_la_CPPFLAGS = \
 	-I$(srcdir)/addrlib/r800/chip \
 	-DBRAHMA_BUILD=1
 
+addrlib_libamdgpu_addrlib_la_CXXFLAGS = \
+	$(VISIBILITY_CXXFLAGS)
+
 noinst_LTLIBRARIES += $(ADDRLIB_LIBS)
 
 addrlib_libamdgpu_addrlib_la_SOURCES = $(ADDRLIB_FILES)
-- 
2.10.0



More information about the mesa-dev mailing list