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>
This commit is contained in:
parent
8c9dd4febb
commit
fefdd577c8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user