diff options
author | Anssi Hannula <anssi@mandriva.org> | 2008-01-22 15:00:50 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2008-01-22 15:00:50 +0000 |
commit | 415f1bf3fed5ff1c42818d0108845d1172bb01ea (patch) | |
tree | 18e52f6b281142ffd8f73c1f0d2ca36a379e3501 | |
parent | 4e85fa5fcca3b13ad0103faaffd50213203779d8 (diff) | |
download | rpm-setup-415f1bf3fed5ff1c42818d0108845d1172bb01ea.tar rpm-setup-415f1bf3fed5ff1c42818d0108845d1172bb01ea.tar.gz rpm-setup-415f1bf3fed5ff1c42818d0108845d1172bb01ea.tar.bz2 rpm-setup-415f1bf3fed5ff1c42818d0108845d1172bb01ea.tar.xz rpm-setup-415f1bf3fed5ff1c42818d0108845d1172bb01ea.zip |
Make %serverbuild define CFLAGS, CXXFLAGS and RPM_OPT_FLAGS variables
as well since some specs are depending on it. Fixes bug #32050.
-rw-r--r-- | macros.in | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -457,8 +457,11 @@ then %{_scrollkeeper_bin} -q || true ; fi \ # (Note: Above is the goal, below are the macros under development) # -# Servers opt flags -%serverbuild %define _serverbuild_flags -fstack-protector-all +# Servers opt flags. +# Also set the env variables for backward compatibility (#32050). +%serverbuild %define _serverbuild_flags -fstack-protector-all \ +export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%optflags" \ +%{nil} %__libtoolize_configure %{?__libtoolize:(cd $CONFIGURE_TOP; [ -f configure.in -o -f configure.ac ] && %{__libtoolize} --copy --force)} |