From: Arran Cudbard-Bell Date: Wed, 21 Sep 2016 14:41:29 +0000 (+0400) Subject: RPM_OPT_FLAGS set by configure macro anyway... We just need to not mess with things. X-Git-Tag: release_3_0_12~43 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=f1495f6000b98d5321a461a09905ebfe9f880cdb RPM_OPT_FLAGS set by configure macro anyway... We just need to not mess with things. --- diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index 2cbf402..53160bf 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -307,9 +307,7 @@ find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \ # Retain CFLAGS from the environment... %if %{?_with_developer:1}%{!?_with_developer:0} export CFLAGS="$CFLAGS -fpic" -# or add the standard RPM optimisation flags. -%else -export CFLAGS="$RPM_OPT_FLAGS -fpic" +export CXXFLAGS="$CFLAGS" %endif # Need to pass these explicitly for clang, else rpmbuilder bails when trying to extract debug info from