File webkit-ld-optimization.patch of Package libwebkit

Index: Source/WebKit/gtk/GNUmakefile.am
===================================================================
--- Source/WebKit/gtk/GNUmakefile.am.orig
+++ Source/WebKit/gtk/GNUmakefile.am
@@ -73,7 +73,7 @@ libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSIO
 
 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
 	-version-info @LIBWEBKITGTK_VERSION@ \
-	$(version_script) \
+	$(version_script) -Wl,--reduce-memory-overheads -Wl,--no-keep-memory \
 	$(no_undefined)
 
 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD := \
Index: Source/WebKit2/GNUmakefile.am
===================================================================
--- Source/WebKit2/GNUmakefile.am.orig
+++ Source/WebKit2/GNUmakefile.am
@@ -153,7 +153,7 @@ endif
 
 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
 	-version-info @LIBWEBKIT2GTK_VERSION@ \
-	$(version_script) \
+	$(version_script) -Wl,--reduce-memory-overheads -Wl,--no-keep-memory \
 	$(no_undefined)
 
 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD := \
Index: GNUmakefile.in
===================================================================
--- GNUmakefile.in.orig
+++ GNUmakefile.in
@@ -21550,7 +21550,7 @@ libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSIO
 
 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
 	-version-info @LIBWEBKITGTK_VERSION@ \
-	$(version_script) \
+	$(version_script) -Wl,--reduce-memory-overheads -Wl,--no-keep-memory \
 	$(no_undefined)
 
 libwebkitgtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD :=  \
@@ -22072,7 +22072,7 @@ libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSI
 
 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
 	-version-info @LIBWEBKIT2GTK_VERSION@ \
-	$(version_script) \
+	$(version_script) -Wl,--reduce-memory-overheads -Wl,--no-keep-memory \
 	$(no_undefined)
 
 libwebkit2gtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD :=  \
openSUSE Build Service is sponsored by