From fc851c8f574799c42ec7b5505a005bdbf575c47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Wed, 10 Apr 2024 20:33:06 +0300 Subject: macros: use -D_FORTIFY_SOURCE=3 by default (mga#30920) --- NEWS | 2 ++ macros.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index db70f4a..d9ffdde 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- macros: use -D_FORTIFY_SOURCE=3 by default (mga#30920) + Version 2.77 - 2 April 2024, by Jani Välimaa - configure: add support for i686 target, and use it as a secondary target for x86_64 diff --git a/macros.in b/macros.in index c9acf17..59a63d1 100644 --- a/macros.in +++ b/macros.in @@ -271,7 +271,7 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} - %debugcflags %{?_enable_debug_packages:-g} -%_fortify_level 2 +%_fortify_level 3 %_fortify_cflags %[ 0%{?_fortify_level} > 0 ? "-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=%{_fortify_level}" : "" ] # cf http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments -- cgit v1.2.1