aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2024-04-10 20:33:06 +0300
committerJani Välimaa <wally@mageia.org>2024-04-10 20:34:00 +0300
commitfc851c8f574799c42ec7b5505a005bdbf575c47f (patch)
treeb499d98ffd2525a2a61b03ae5f42ab8ca1127420
parent047595d46d78570c7979d6a44a6956b180cb63b4 (diff)
downloadrpm-setup-fc851c8f574799c42ec7b5505a005bdbf575c47f.tar
rpm-setup-fc851c8f574799c42ec7b5505a005bdbf575c47f.tar.gz
rpm-setup-fc851c8f574799c42ec7b5505a005bdbf575c47f.tar.bz2
rpm-setup-fc851c8f574799c42ec7b5505a005bdbf575c47f.tar.xz
rpm-setup-fc851c8f574799c42ec7b5505a005bdbf575c47f.zip
macros: use -D_FORTIFY_SOURCE=3 by default (mga#30920)
-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