[mingw-glib2] Work around more strict behaviour of gcc 4.8

Erik van Pienbroek epienbro at fedoraproject.org
Sat Jan 19 15:56:03 UTC 2013


commit e0a3d4a69b63c993dd4eb9fed00cb1ffb98d857b
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Sat Jan 19 16:55:50 2013 +0100

    Work around more strict behaviour of gcc 4.8

 mingw-glib2.spec |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/mingw-glib2.spec b/mingw-glib2.spec
index caec109..54e6b1e 100644
--- a/mingw-glib2.spec
+++ b/mingw-glib2.spec
@@ -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 at 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 at fedoraproject.org> - 2.35.4-1
 - Update to 2.35.4
 


More information about the mingw mailing list