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 <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user