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>
%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 \