From a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 24 Apr 2020 13:10:41 -0700 Subject: meson: use gnu_symbol_visibility argument This uses a meson builtin to handle -fvisibility=hidden. This is nice because we don't need to track which languages are used, if C++ is suddenly added meson just does the right thing. Acked-by: Matt Turner Reviewed-by: Eric Engestrom Part-of: --- src/freedreno/vulkan/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/freedreno/vulkan/meson.build') diff --git a/src/freedreno/vulkan/meson.build b/src/freedreno/vulkan/meson.build index bafce3d06d7..a4ec242e553 100644 --- a/src/freedreno/vulkan/meson.build +++ b/src/freedreno/vulkan/meson.build @@ -130,7 +130,8 @@ libvulkan_freedreno = shared_library( idep_vulkan_util, idep_mesautil, ], - c_args : [c_vis_args, no_override_init_args, tu_flags], + c_args : [no_override_init_args, tu_flags], + gnu_symbol_visibility : 'hidden', link_args : [ld_args_bsymbolic, ld_args_gc_sections], install : true, ) -- cgit v1.2.3