summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-21 18:36:14 +0100
committerSimon McVittie <smcv@collabora.com>2022-04-21 19:44:13 +0100
commiteeea247ade9efc797d7aad88baa9e93742d9a9bf (patch)
tree348996f20dc73db9fea19a98af2e412e480e94c5
parentb76cf458cea23d8359237248bf97fde693ce9fe2 (diff)
downloadlibglnx-eeea247ade9efc797d7aad88baa9e93742d9a9bf.tar.gz
meson: Always build with hidden symbol visibility
This copylib isn't intended to be part of anyone's ABI. In Autotools, this is typically implemented by doing some ad-hoc compiler checks and adding -fvisibility=hidden to the global CFLAGS of any library that pulls in libglnx, but in Meson it's a build system feature. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1fc438e..f3dc8a4 100644
--- a/meson.build
+++ b/meson.build
@@ -83,6 +83,7 @@ libglnx_sources = [
libglnx = static_library('glnx',
libglnx_sources,
dependencies : libglnx_deps,
+ gnu_symbol_visibility : 'hidden',
include_directories : libglnx_inc,
install : false)
libglnx_dep = declare_dependency(