Adjust CFLAGS for compiling fribidi on EL-5
This commit is contained in:
parent
f63aac9b6c
commit
e37627ee99
@ -28,9 +28,18 @@ FriBidi.
|
||||
%setup -q
|
||||
|
||||
%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
|
||||
export CFLAGS="$RPM_OPT_FLAGS -DPAGE_SIZE=4096"
|
||||
%endif
|
||||
%endif
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user