diff options
-rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index be2c365..35e7460 100644 --- a/meson.build +++ b/meson.build @@ -23,13 +23,17 @@ add_project_arguments( '-Wmissing-prototypes', '-Wno-unknown-warning', '-Wvla', - '-D_XOPEN_SOURCE=9000', '-Wl,--exclude-libs=ALL', '-fvisibility=hidden', + '-D_XOPEN_SOURCE=700', ], language: 'c', ) +if ['debugoptimized', 'release', 'minsize'].contains(get_option('buildtype')) + add_project_arguments('-D_FORTIFY_SOURCE=2', language: 'c') +endif + # Hacks source_root = meson.current_source_dir().split('/') build_root = meson.build_root().split('/') |