add hack to compile on i386 with gcc33
This commit is contained in:
parent
438da18a07
commit
ae4f4f2003
@ -145,6 +145,15 @@ function make_fast() {
|
|||||||
CFLAGS="$RPM_OPT_FLAGS -O1"
|
CFLAGS="$RPM_OPT_FLAGS -O1"
|
||||||
export CFLAGS
|
export CFLAGS
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%ifarch %{ix86}
|
||||||
|
# This is all needed to work around RPMs %{optflags} which are wrong
|
||||||
|
# for gcc 3.3 when gcc 3.4 is installed
|
||||||
|
%define optflags %{nil}
|
||||||
|
export CFLAGS="-march=i386 -mcpu=i686 -O2 -g"
|
||||||
|
export CXXFLAGS="-march=i386 -mcpu=i686 -O2 -g"
|
||||||
|
%endif
|
||||||
|
|
||||||
#### Build once with tests to make check
|
#### Build once with tests to make check
|
||||||
%configure $COMMON_ARGS --enable-tests=yes --enable-verbose-mode=yes --enable-asserts=yes
|
%configure $COMMON_ARGS --enable-tests=yes --enable-verbose-mode=yes --enable-asserts=yes
|
||||||
make_fast
|
make_fast
|
||||||
|
Loading…
Reference in New Issue
Block a user