From ae4f4f2003a8308e7c4e81caac1e60053ba55c4d Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Mon, 7 Mar 2005 23:02:59 +0000 Subject: [PATCH] add hack to compile on i386 with gcc33 --- dbus.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dbus.spec b/dbus.spec index a97fb1d..8b6b917 100644 --- a/dbus.spec +++ b/dbus.spec @@ -145,6 +145,15 @@ function make_fast() { CFLAGS="$RPM_OPT_FLAGS -O1" export CFLAGS %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 %configure $COMMON_ARGS --enable-tests=yes --enable-verbose-mode=yes --enable-asserts=yes make_fast