From bc4457d8e0e53a2e43c4254d08053ba9708663e1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 20 Jun 2023 01:14:49 +0100 Subject: gentoo auto-resync : 20:06:2023 - 01:14:49 --- .../files/librsvg-2.56.0-gc-sections-shrink.patch | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 gnome-base/librsvg/files/librsvg-2.56.0-gc-sections-shrink.patch (limited to 'gnome-base/librsvg/files') diff --git a/gnome-base/librsvg/files/librsvg-2.56.0-gc-sections-shrink.patch b/gnome-base/librsvg/files/librsvg-2.56.0-gc-sections-shrink.patch deleted file mode 100644 index d20909f4eaa5..000000000000 --- a/gnome-base/librsvg/files/librsvg-2.56.0-gc-sections-shrink.patch +++ /dev/null @@ -1,53 +0,0 @@ -https://gitlab.gnome.org/GNOME/librsvg/-/issues/965 -https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/832 -https://github.com/rust-lang/rust/issues/111593 - -From 61bba147f65019eab2a42148065798bc568169ab Mon Sep 17 00:00:00 2001 -From: Federico Mena Quintero -Date: Thu, 18 May 2023 17:57:01 -0600 -Subject: [PATCH] (#965): Shrink the shared library by telling the linker to - omit unused code -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Thanks to Sebastian Dröge for spotting this. - -Fixes https://gitlab.gnome.org/GNOME/librsvg/-/issues/965 - -Part-of: ---- a/Makefile.am -+++ b/Makefile.am -@@ -217,12 +217,24 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_CPPFLAGS = $(AM_CPPFLAGS) - - librsvg_@RSVG_API_MAJOR_VERSION@_la_CFLAGS = $(AM_CFLAGS) - --librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS = \ -- $(BSYMBOLIC_LDFLAG) \ -- -version-info @RSVG_LT_VERSION_INFO@ \ -- -export-dynamic \ -- -no-undefined \ -- -export-symbols-regex "^rsvg_.*" \ -+# This is not strictly needed, but since we are telling Cargo to build a staticlib, it puts in -+# all of Rust's standard library and code from dependencies even when it is not needed. -+# With the following, we shrink the final .so size; see issue #965. -+# -+# This will no longer be needed when we switch to cargo-cbuild, which does this automatically. -+if OS_DARWIN -+gc_linked_library_args="-Wl,-dead_strip" -+else -+gc_linked_library_args="-Wl,--gc-sections" -+endif -+ -+librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS = \ -+ $(BSYMBOLIC_LDFLAG) \ -+ -version-info @RSVG_LT_VERSION_INFO@ \ -+ -export-dynamic \ -+ -no-undefined \ -+ -export-symbols-regex "^rsvg_.*" \ -+ $(gc_linked_library_args) \ - $(AM_LDFLAGS) - - if OS_DARWIN --- -GitLab -- cgit v1.2.3