diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | macros.in | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- macros: make _FORTIFY_SOURCE flags configurable via %_fortify_level variable +- macros: undefine _FORTIFY_SOURCE before defining it to avoid build warnings on some packages defining it already + Version 2.72 - 18 November 2023, by Jani Välimaa - macros: define _use_weak_usergroup_deps to only add user() and group() requires as recommends @@ -240,7 +240,8 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} - %debugcflags %{?_enable_debug_packages:-g} -%_fortify_cflags -Wp,-D_FORTIFY_SOURCE=2 +%_fortify_level 2 +%_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 %Werror_cflags -Wformat -Werror=format-security |