[libglnx/wip/smcv/subproject: 2/5] meson: Always build with hidden symbol visibility




commit eeea247ade9efc797d7aad88baa9e93742d9a9bf
Author: Simon McVittie <smcv collabora com>
Date:   Thu Apr 21 18:36:14 2022 +0100

    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>

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
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(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]