Fix build against gcc 4.9 by disabling LTO

This commit is contained in:
Erik van Pienbroek 2014-05-24 15:07:19 +02:00
parent 04c8fa36f1
commit 4d0de1efef

View File

@ -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 <epienbro@fedoraproject.org> - 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 <epienbro@fedoraproject.org> - 1.12.16-1
- Update to 1.12.16