From fefdd577c8284a8009e827c1481d223d9901a311 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Fri, 28 Apr 2023 13:56:16 +0300 Subject: [PATCH] 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 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)