Build fails without fat-lto-object:
https://code.google.com/p/chromium/issues/detail?id=360604
Switched off lto for aarch64 because of low mem: current OBS worker does not
have enough RAM to perform an LTO for AArch64 cairo build.
Change-Id: Iea99e837ff301a37a67dd18074d518d948ee6437
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
export CFLAGS=`echo $CFLAGS | sed s'/atom/i686/g'`
export CXXFLAGS=`echo $CXXFLAGS | sed s'/atom/i686/g'`
+export CFLAGS+=" -ffat-lto-objects"
+export CXXFLAGS+=" -ffat-lto-objects"
+
+%ifarch aarch64
+export CFLAGS="$CFLAGS -fno-lto"
+export CXXFLAGS="$CXXFLAGS -fno-lto"
+%endif
+
# Needed by patch0
NOCONFIGURE=1 ./autogen.sh
%configure \