[mingw-webkitgtk: 27/36] Lower debug level to prevent memory exhaustion by linker

Kalev Lember kalev at fedoraproject.org
Tue Mar 6 21:11:43 UTC 2012


commit c7da06392b8091ee4cc94a9e467c33347d96e20a
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Feb 7 15:07:33 2012 +0200

    Lower debug level to prevent memory exhaustion by linker
    
    From koji build log:
    
    Creating library file: .libs/libwebkitgtk-1.0.dll.a
    /usr/lib/gcc/i686-pc-mingw32/4.7.0/../../../../i686-pc-mingw32/bin/ld: final link failed: File truncated
    collect2: error: ld returned 1 exit status

 mingw32-webkitgtk.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/mingw32-webkitgtk.spec b/mingw32-webkitgtk.spec
index 002afa1..3e6e656 100644
--- a/mingw32-webkitgtk.spec
+++ b/mingw32-webkitgtk.spec
@@ -130,6 +130,9 @@ Static version of the MinGW Windows WebKitGTK+ library.
 
 
 %build
+# lower debug level to prevent memory exhaustion by linker
+%global _mingw32_cflags %(echo %{_mingw32_cflags} | sed 's/-g /-g1 /')
+
 %{_mingw32_configure}						\
 			--with-target=win32			\
 			--with-gtk=2.0				\
@@ -213,6 +216,7 @@ fi
 - Add a patch to link with gmodule
 - Switch to .xz tarballs
 - Backport patch to fix WebKitWebView not drawing initially on win32
+- Lower debug level to prevent memory exhaustion by linker
 
 * Tue Jan 31 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.6.1-3
 - Fix compilation against glib 2.31.2 or higher


More information about the scm-commits mailing list