From eeea247ade9efc797d7aad88baa9e93742d9a9bf Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 21 Apr 2022 18:36:14 +0100 Subject: [PATCH] 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 --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 1fc438e5..f3dc8a40 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(