mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-06 15:20:31 +01:00
meson: Build with -fno-common if supported
This turns off a poorly-supported feature of older compilers. Even when using an older compiler, we want to behave more strictly. The Autotools build already did this. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
0c4ec2d2e1
commit
ab01169a20
1 changed files with 5 additions and 0 deletions
|
|
@ -986,6 +986,11 @@ config.set_quoted('DBUS_EXEEXT', exe_ext)
|
|||
compile_warnings = []
|
||||
compile_warnings_c = []
|
||||
|
||||
# -fno-common makes the linker more strict: on some systems the linker
|
||||
# is *always* this strict, so we want to behave like that everywhere.
|
||||
# We treat this like a warning, since that's basically how we're using it.
|
||||
compile_warnings += ['-fno-common']
|
||||
|
||||
if cc.get_id() == 'msvc'
|
||||
compile_warnings += [
|
||||
# once
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue