File webkit-ld-optimization.patch of Package webkitgtk

Index: Source/WebKit/gtk/GNUmakefile.am
===================================================================
--- Source/WebKit/gtk/GNUmakefile.am.orig
+++ Source/WebKit/gtk/GNUmakefile.am
@@ -75,7 +75,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
@@ -167,7 +167,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
@@ -22117,7 +22117,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 :=  \
@@ -22708,7 +22708,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