aboutsummaryrefslogtreecommitdiffstats
path: root/macros.in
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2023-12-05 21:42:38 +0200
committerJani Välimaa <wally@mageia.org>2023-12-05 21:42:38 +0200
commit5b2047b05ead5353c1d3ca3e8112424eb1c7aae4 (patch)
tree25cb7187d14298de525f45b090ba5b4ca636d61f /macros.in
parentce8ea0fd5850c613b918b161159c5ccd18a43d8d (diff)
downloadrpm-setup-5b2047b05ead5353c1d3ca3e8112424eb1c7aae4.tar
rpm-setup-5b2047b05ead5353c1d3ca3e8112424eb1c7aae4.tar.gz
rpm-setup-5b2047b05ead5353c1d3ca3e8112424eb1c7aae4.tar.bz2
rpm-setup-5b2047b05ead5353c1d3ca3e8112424eb1c7aae4.tar.xz
rpm-setup-5b2047b05ead5353c1d3ca3e8112424eb1c7aae4.zip
macros: simplify %serverbuild macro
Diffstat (limited to 'macros.in')
-rw-r--r--macros.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros.in b/macros.in
index 0ee6fb3..91f6e08 100644
--- a/macros.in
+++ b/macros.in
@@ -251,13 +251,13 @@ GCONF_CONFIG_SOURCE=`%{_gconftool_bin} --get-default-source` %{_gconftool_bin} -
# cf http://wiki.mandriva.com/en/Development/Packaging/Problems#format_not_a_string_literal_and_no_format_arguments
%Werror_cflags -Wformat -Werror=format-security
-%_ssp_cflags -fstack-protector-strong %{?_serverbuild_flags: %_serverbuild_flags}
+%_ssp_cflags -fstack-protector-strong
%__common_cflags -O2 %{debugcflags} -pipe %{Werror_cflags} %{?_fortify_cflags}%{?_legacy_common_support: -fcommon}
%__common_cflags_with_ssp %{__common_cflags} %{?_ssp_cflags}
# Servers opt flags.
# Also set the env variables for backward compatibility (mdv #32050).
-%serverbuild %define _serverbuild_flags -fstack-protector-all \
+%serverbuild %define _ssp_cflags -fstack-protector-all \
export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%optflags" \
%{nil}