Fixing build for GCC 4.9 68/25968/3 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/common/20141002.100421 accepted/tizen/ivi/20141006.114614 submit/tizen/20141002.004835 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorVyacheslav Barinov <v.barinov@samsung.com>
Wed, 13 Aug 2014 09:08:34 +0000 (13:08 +0400)
committerVyacheslav Barinov <v.barinov@samsung.com>
Thu, 21 Aug 2014 13:29:10 +0000 (17:29 +0400)
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>
packaging/cairo.spec

index 720b9c5..f5ef9b4 100644 (file)
@@ -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 \