summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.com>2023-04-28 13:56:16 +0300
committerPekka Paalanen <pekka.paalanen@collabora.com>2023-04-28 13:58:53 +0300
commitfefdd577c8284a8009e827c1481d223d9901a311 (patch)
tree7dd7b28c951fc8b6bcca2031d6894d09a201f91c
parent8c9dd4febbe129a29d045974a89eec8e28bd3418 (diff)
downloadweston-fefdd577c8284a8009e827c1481d223d9901a311.tar.gz
build: set project, not global, arguments
Global arguments leak into Meson subprojects. Let's not do that. Specifically, -fvisibility=hidden leaks into a future sub-project libdisplay-info, where it results the DSO not exporting any symbols. Libdisplay-info uses a linker script to define the exported symbols and not visiblity. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 85306073..068c7f1a 100644
--- a/meson.build
+++ b/meson.build
@@ -70,7 +70,7 @@ global_args = cc.get_supported_arguments(
'-Wundef',
'-fvisibility=hidden',
)
-add_global_arguments(global_args, language: 'c')
+add_project_arguments(global_args, language: 'c')
if cc.has_header_symbol('sys/sysmacros.h', 'major')
config_h.set('MAJOR_IN_SYSMACROS', 1)