aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--macros.in2
2 files changed, 3 insertions, 1 deletions
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