From: Emil Velikov Date: Wed, 12 Oct 2016 18:05:30 +0000 (+0100) Subject: amd/addrlib: hide private symbols via VISIBILITY_CXXFLAGS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=753a9c989fc84e90072a40081bf304c5cb8f6edd;p=mesa.git amd/addrlib: hide private symbols via VISIBILITY_CXXFLAGS 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 Acked-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- diff --git a/src/amd/Makefile.addrlib.am b/src/amd/Makefile.addrlib.am index 434e6923492..64823fcdf16 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)