From 4d0de1efef4b75176560ecb5af719a11ea4f272c Mon Sep 17 00:00:00 2001 From: Erik van Pienbroek Date: Sat, 24 May 2014 15:07:19 +0200 Subject: [PATCH] Fix build against gcc 4.9 by disabling LTO --- mingw-cairo.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mingw-cairo.spec b/mingw-cairo.spec index 11b1295..8f7e608 100644 --- a/mingw-cairo.spec +++ b/mingw-cairo.spec @@ -2,7 +2,7 @@ Name: mingw-cairo Version: 1.12.16 -Release: 1%{?dist} +Release: 2%{?dist} Summary: MinGW Windows Cairo library License: LGPLv2 or MPLv1.1 @@ -127,6 +127,10 @@ MINGW_CONFIGURE_ARGS=" \ --enable-gobject \ --enable-tee" +# Workaround for gcc 4.9 compatibility issue +MINGW32_CFLAGS="%{mingw32_cflags} -fno-lto" +MINGW64_CFLAGS="%{mingw64_cflags} -fno-lto" + # The regular %%mingw_configure macro can't be used here as we need to inject custom # environment variables which are different between the win32 and win64 build pushd build_win32 @@ -141,7 +145,7 @@ pushd build_win64 FREETYPE_LIBS="-L`pwd` -lfreetype-delayed" popd -%mingw_make %{?_smp_mflags} +%mingw_make %{?_smp_mflags} V=1 %install @@ -215,6 +219,10 @@ find $RPM_BUILD_ROOT -name "*.la" -delete %changelog +* Sat May 24 2014 Erik van Pienbroek - 1.12.16-2 +- Fix build against gcc 4.9 by disabling LTO + Thanks to LRN for the hint + * Sat Sep 7 2013 Erik van Pienbroek - 1.12.16-1 - Update to 1.12.16