Adjust CFLAGS for compiling fribidi on EL-5

This commit is contained in:
Michel Alexandre Salim 2010-07-08 11:24:59 +00:00
parent f63aac9b6c
commit e37627ee99

View File

@ -28,9 +28,18 @@ FriBidi.
%setup -q %setup -q
%build %build
%if 0%{?el5}
# FORTIFY_SOURCE=2 breaks EL-5 build
export CFLAGS=`echo $RPM_OPT_FLAGS | sed -e 's|FORTIFY_SOURCE=2|FORTIFY_SOURCE=1|'`
%ifarch ppc ppc64 x86_64
export CFLAGS="$CFLAGS -DPAGE_SIZE=4096"
%endif
%else
# outside of EL-5, only ppc* needs modification
%ifarch ppc ppc64 %ifarch ppc ppc64
export CFLAGS="$RPM_OPT_FLAGS -DPAGE_SIZE=4096" export CFLAGS="$RPM_OPT_FLAGS -DPAGE_SIZE=4096"
%endif %endif
%endif
%configure --disable-static %configure --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}