From: Vyacheslav Barinov Date: Wed, 13 Aug 2014 09:08:34 +0000 (+0400) Subject: Fixing build for GCC 4.9 X-Git-Tag: accepted/tizen/common/20141002.100421^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fupstream%2Fcairo.git 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 --- 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 \