RPM_OPT_FLAGS set by configure macro anyway... We just need to not mess with things.
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 21 Sep 2016 14:41:29 +0000 (18:41 +0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 21 Sep 2016 15:34:44 +0000 (11:34 -0400)
redhat/freeradius.spec

index 2cbf402..53160bf 100644 (file)
@@ -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