diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-01-19 10:42:20 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2022-01-20 10:07:18 -0800 |
commit | 6b0b493555af7ef9374d6b2e7feafd848090d6e7 (patch) | |
tree | 23653ec2076dd0aff5b66b2f643766eec764504d /intel | |
parent | 847be2651fd02e452b59a7462e9829d87430a3d3 (diff) |
meson: switch the meson builtin for symbol visiblity
This allows meson to check if the compiler supports gnu style symbol
visibility, and apply the appropriate flags as necessary, rather than us
adding them by hand
Signed-off-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'intel')
-rw-r--r-- | intel/meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intel/meson.build b/intel/meson.build index 75e6bc3e..4ce36b9f 100644 --- a/intel/meson.build +++ b/intel/meson.build @@ -31,6 +31,7 @@ libdrm_intel = library( link_with : libdrm, dependencies : [dep_pciaccess, dep_pthread_stubs, dep_rt, dep_valgrind, dep_atomic_ops], c_args : libdrm_c_args, + gnu_symbol_visibility : 'hidden', version : '1.0.0', install : true, ) @@ -64,6 +65,7 @@ test_decode = executable( include_directories : [inc_root, inc_drm], link_with : [libdrm, libdrm_intel], c_args : libdrm_c_args, + gnu_symbol_visibility : 'hidden', ) test( |