aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2020-04-24 13:10:41 -0700
committerMarge Bot <[email protected]>2020-06-01 18:59:18 +0000
commita8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch)
tree18eef778716e07f993f568e54920e2242fd0b717 /src/util
parentfc7301865e1eabe06d4225af596e7334c4094fe5 (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/util')
-rw-r--r--src/util/format/meson.build3
-rw-r--r--src/util/meson.build6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/util/format/meson.build b/src/util/format/meson.build
index 4d60e6ed80e..34615fd35cd 100644
--- a/src/util/format/meson.build
+++ b/src/util/format/meson.build
@@ -45,6 +45,7 @@ libmesa_format = static_library(
[files_mesa_format, u_format_table_c],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : dep_m,
- c_args : [c_msvc_compat_args, c_vis_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false
)
diff --git a/src/util/meson.build b/src/util/meson.build
index 1fda53bafd5..2dbdd43d6b7 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -171,7 +171,8 @@ _libmesa_util = static_library(
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : deps_for_libmesa_util,
link_with: libmesa_format,
- c_args : [c_msvc_compat_args, c_vis_args],
+ c_args : [c_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false
)
@@ -187,7 +188,7 @@ _libxmlconfig = static_library(
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [idep_mesautil, dep_expat, dep_m],
c_args : [
- c_msvc_compat_args, c_vis_args,
+ c_msvc_compat_args,
'-DSYSCONFDIR="@0@"'.format(
join_paths(get_option('prefix'), get_option('sysconfdir'))
),
@@ -195,6 +196,7 @@ _libxmlconfig = static_library(
join_paths(get_option('prefix'), get_option('datadir'))
),
],
+ gnu_symbol_visibility : 'hidden',
build_by_default : false,
)