aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
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/mapi
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/mapi')
-rw-r--r--src/mapi/es1api/meson.build2
-rw-r--r--src/mapi/es2api/meson.build2
-rw-r--r--src/mapi/shared-glapi/meson.build2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build
index 711048421b8..f8b4d045c92 100644
--- a/src/mapi/es1api/meson.build
+++ b/src/mapi/es1api/meson.build
@@ -37,12 +37,12 @@ libglesv1_cm = shared_library(
['../entry.c', es1_glapi_mapi_tmp_h],
c_args : [
c_msvc_compat_args,
- c_vis_args,
_es1_c_args,
'-DMAPI_MODE_BRIDGE',
'-DMAPI_ABI_HEADER="@0@"'.format(es1_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build
index ac79aa66f89..63a5a66b213 100644
--- a/src/mapi/es2api/meson.build
+++ b/src/mapi/es2api/meson.build
@@ -37,12 +37,12 @@ libgles2 = shared_library(
['../entry.c', es2_glapi_mapi_tmp_h],
c_args : [
c_msvc_compat_args,
- c_vis_args,
_es2_c_args,
'-DMAPI_MODE_BRIDGE',
'-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build
index 5b9db0c081a..68fa50d82e6 100644
--- a/src/mapi/shared-glapi/meson.build
+++ b/src/mapi/shared-glapi/meson.build
@@ -47,11 +47,11 @@ libglapi = shared_library(
c_args : [
_glapi_c_args,
c_msvc_compat_args,
- c_vis_args,
'-DMAPI_MODE_GLAPI',
'-DMAPI_ABI_HEADER="@0@"'.format(shared_glapi_mapi_tmp_h.full_path()),
gcc_lto_quirk,
],
+ gnu_symbol_visibility : 'hidden',
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
dependencies : [dep_thread, dep_selinux],