Skip to content

Commit

Permalink
Don't use -O2 for --with developer on rpmbuild. Fixes #1753
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Sep 21, 2016
1 parent c886143 commit 53bd260
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redhat/freeradius.spec
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \


%build
%ifarch s390 s390x
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
%if %{?_with_developer:1}%{!?_with_developer:0}
export CFLAGS="$CFLAGS -fpic"
%else
export CFLAGS="$RPM_OPT_FLAGS -fpic"
%endif
Expand Down

0 comments on commit 53bd260

Please sign in to comment.