[libglnx/wip/smcv/subproject: 1/4] meson: Always build with hidden symbol visibility
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libglnx/wip/smcv/subproject: 1/4] meson: Always build with hidden symbol visibility
- Date: Thu, 21 Apr 2022 17:54:51 +0000 (UTC)
commit 5e2f84712805f50ccf7d04ae1ad5ca821a207d56
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 6714dc2..db9d56e 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]