packaging: Disable atom optimizations
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 8 Jan 2013 12:32:19 +0000 (14:32 +0200)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 22 Nov 2013 02:03:08 +0000 (10:03 +0800)
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 <markus.lehtonen@linux.intel.com>
packaging/cairo.spec

index fc9f9c4..44a8098 100644 (file)
@@ -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 \