X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=redhat%2Ffreeradius.spec;h=2cbf402de450eedff15dd5428d242a5f5e0a7683;hb=58e9ee43437c8c6f9bd30db157130ac5cf95f1e1;hp=1ef613c1bef30677450f50e633445da713c98b98;hpb=53bd26090cdcbdfa0f901ca40fbd59093fed28be;p=freeradius.git diff --git a/redhat/freeradius.spec b/redhat/freeradius.spec index 1ef613c..2cbf402 100644 --- a/redhat/freeradius.spec +++ b/redhat/freeradius.spec @@ -304,8 +304,10 @@ find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \ %build +# 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" %endif