mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
meson: Enable _FORTIFY_SOURCE for optimized builds
Otherwise we are going to get warnings from the C library.
This commit is contained in:
parent
8b5e285e26
commit
8ee4d5f1d3
1 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,9 @@ if cc.get_id() != 'msvc'
|
|||
'-fno-common'
|
||||
]
|
||||
|
||||
cflags += '-Wp,-D_FORTIFY_SOURCE=2'
|
||||
if get_option('optimization') in ['1', '2', '3']
|
||||
cflags += '-Wp,-D_FORTIFY_SOURCE=2'
|
||||
endif
|
||||
|
||||
supported_cflags = cc.get_supported_arguments(cflags)
|
||||
add_project_arguments(supported_cflags, language: 'c')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue