From 4eb6a8e3a0580f709ea948a4054e99d336832d48 Mon Sep 17 00:00:00 2001 From: Vyacheslav Barinov Date: Wed, 13 Aug 2014 13:08:34 +0400 Subject: [PATCH] Fixing build for GCC 4.9 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 --- packaging/cairo.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packaging/cairo.spec b/packaging/cairo.spec index 720b9c5..f5ef9b4 100644 --- a/packaging/cairo.spec +++ b/packaging/cairo.spec @@ -130,6 +130,14 @@ 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'` +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 \ -- 2.7.4