Work around more strict behaviour of gcc 4.8

This commit is contained in:
Erik van Pienbroek 2013-01-19 16:55:50 +01:00
parent 42ed941ff8
commit e0a3d4a69b

View File

@ -2,7 +2,7 @@
Name: mingw-glib2
Version: 2.35.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: MinGW Windows GLib2 library
License: LGPLv2+
@ -52,6 +52,7 @@ Patch2: glib-build-dbus-proxy-testcase-only-on-unix.patch
# win32 API function AttachConsole can be used to dynamically attach GUI
# applications to a console and the file descriptors of stderr and stdout
# will become different than 1 and 2
# https://bugzilla.gnome.org/show_bug.cgi?id=692085
Patch3: glib-send-log-messages-to-correct-stdout-and-stderr.patch
@ -103,12 +104,15 @@ autoreconf -i --force
%build
# Work around more strict behaviour of gcc 4.8, GNOME BZ #692079
export MINGW64_CFLAGS="%mingw64_cflags -Wno-error=format='.*'"
#GLib can't build static and shared libraries in one go, so we build GLib twice
MINGW_BUILDDIR_SUFFIX=static %mingw_configure --disable-shared --enable-static
MINGW_BUILDDIR_SUFFIX=shared %mingw_configure --disable-static
MINGW_BUILDDIR_SUFFIX=static %mingw_make %{?_smp_mflags}
MINGW_BUILDDIR_SUFFIX=shared %mingw_make %{?_smp_mflags}
MINGW_BUILDDIR_SUFFIX=static %mingw_make %{?_smp_mflags} V=1
MINGW_BUILDDIR_SUFFIX=shared %mingw_make %{?_smp_mflags} V=1
%install
@ -278,6 +282,10 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
%changelog
* Sat Jan 19 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.35.4-2
- Work around more strict behaviour of gcc 4.8, GNOME BZ #692079
- Use verbose make
* Wed Jan 16 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.35.4-1
- Update to 2.35.4