From: Markus Lehtonen Date: Tue, 8 Jan 2013 12:32:19 +0000 (+0200) Subject: packaging: Disable atom optimizations X-Git-Tag: submit/tizen/20131122.082948~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c8645c18204bdb41c42a9965fa2461d096c96da;p=platform%2Fupstream%2Fcairo.git packaging: Disable atom optimizations Atom optimizations introduce "movbe" instructions which makes the binaries unexecutable in buildroots. Which, in turn, makes some packages unbuildable (for 32-bit x86 builders). Signed-off-by: Markus Lehtonen --- diff --git a/packaging/cairo.spec b/packaging/cairo.spec index fc9f9c4..44a8098 100644 --- a/packaging/cairo.spec +++ b/packaging/cairo.spec @@ -115,6 +115,11 @@ cairo. %setup -q %build +# Disable Atom optimizations in order to make binaries executable in buildroot +export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed s'/atom/i686/g'` +export CFLAGS=`echo $CFLAGS | sed s'/atom/i686/g'` +export CXXFLAGS=`echo $CXXFLAGS | sed s'/atom/i686/g'` + # Needed by patch0 NOCONFIGURE=1 ./autogen.sh %configure \