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/loader/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/loader/meson.build')
-rw-r--r-- | src/loader/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/loader/meson.build b/src/loader/meson.build index e7dce88d443..8c6f2caa5ae 100644 --- a/src/loader/meson.build +++ b/src/loader/meson.build @@ -24,7 +24,7 @@ if with_platform_x11 and with_dri3 libloader_dri3_helper = static_library( 'loader_dri3_helper', 'loader_dri3_helper.c', - c_args : c_vis_args, + gnu_symbol_visibility : 'hidden', include_directories : [inc_include, inc_src], dependencies : [ dep_libdrm, dep_xcb_dri3, dep_xcb_present, dep_xcb_sync, dep_xshmfence, @@ -36,7 +36,7 @@ else endif loader_c_args = [ - c_vis_args, '-DUSE_DRICONF', + '-DUSE_DRICONF', '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path), ] @@ -48,6 +48,7 @@ libloader = static_library( 'loader', ['loader.c', 'pci_id_driver_map.c'], c_args : loader_c_args, + gnu_symbol_visibility : 'hidden', include_directories : [inc_include, inc_src, inc_util], dependencies : [dep_libdrm, dep_thread, idep_xmlconfig_headers], build_by_default : false, |