amd/addrlib: hide private symbols via VISIBILITY_CXXFLAGS
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 12 Oct 2016 18:05:30 +0000 (19:05 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 10:09:00 +0000 (11:09 +0100)
Private/internal symbols should not be exported. Using the CXXFLAGS cuts
~300 exported symbols and ~23K from libvulkan_radeon.so.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/Makefile.addrlib.am

index 434e69234920b531668aae827c95aadd0b73b872..64823fcdf16106fccdc6469460430756ffa90eaa 100644 (file)
@@ -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)