diff options
author | Dylan Baker <[email protected]> | 2020-04-24 13:10:41 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 18:59:18 +0000 |
commit | a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch) | |
tree | 18eef778716e07f993f568e54920e2242fd0b717 /src/gallium/auxiliary/meson.build | |
parent | fc7301865e1eabe06d4225af596e7334c4094fe5 (diff) |
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 <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/gallium/auxiliary/meson.build')
-rw-r--r-- | src/gallium/auxiliary/meson.build | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build index 8b02084c0d0..3e91a6c2723 100644 --- a/src/gallium/auxiliary/meson.build +++ b/src/gallium/auxiliary/meson.build @@ -488,7 +488,7 @@ if with_dri2 and with_platform_x11 if with_dri3 vlwinsys_deps += [ dep_xcb_sync, dep_xcb_present, dep_xshmfence, dep_xcb_xfixes, - dep_xcb_dri3, + dep_xcb_dri3, ] files_libgalliumvlwinsys += files('vl/vl_winsys_dri3.c') endif @@ -516,8 +516,9 @@ libgallium = static_library( include_directories : [ inc_loader, inc_gallium, inc_src, inc_include, include_directories('util') ], - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', dependencies : [ dep_libdrm, dep_llvm, dep_unwind, dep_dl, dep_m, dep_thread, dep_lmsensors, idep_nir, idep_nir_headers, idep_mesautil, @@ -528,8 +529,9 @@ libgallium = static_library( libgalliumvl_stub = static_library( 'galliumvl_stub', 'vl/vl_stubs.c', - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories: [inc_gallium, inc_include, inc_src], build_by_default : false, ) @@ -537,8 +539,9 @@ libgalliumvl_stub = static_library( libgalliumvl = static_library( 'galliumvl', files_libgalliumvl, - c_args : [c_vis_args, c_msvc_compat_args], - cpp_args : [cpp_vis_args, cpp_msvc_compat_args], + c_args : [c_msvc_compat_args], + cpp_args : [cpp_msvc_compat_args], + gnu_symbol_visibility : 'hidden', include_directories : [inc_gallium, inc_include, inc_src], build_by_default : false, ) |