From 8e52ef6a7cee11963b8adc53d70b51c8d8ec84e2 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 1 Dec 2023 19:12:15 +0200 Subject: [PATCH] build: add some fortification flags --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 081c63e1..547a811d 100644 --- a/meson.build +++ b/meson.build @@ -58,10 +58,11 @@ extra_flags = [ '-Wformat-security', '-Wformat=2', '-Wstack-protector', + '-fstack-protector-strong', '-Wno-switch-enum', # assuming these are false alarm... (in fmt, with gcc13): '-Wno-array-bounds', - '-Wno-stringop-overflow'] + '-Wno-stringop-overflow',] if (cxx.get_id() == 'clang') extra_flags += [ @@ -77,6 +78,7 @@ extra_cpp_flags= [ if get_option('buildtype') == 'debug' extra_flags += [ + '-D_GLIBCXX_ASSERTIONS', '-ggdb', '-g3'] endif