[arch-commits] Commit in librsvg/trunk (PKGBUILD lto.diff)
Jan Steffens
heftig at archlinux.org
Tue May 25 21:51:44 UTC 2021
Date: Tuesday, May 25, 2021 @ 21:51:43
Author: heftig
Revision: 416457
2.50.6-1
Modified:
librsvg/trunk/PKGBUILD
Deleted:
librsvg/trunk/lto.diff
----------+
PKGBUILD | 18 ++++++++----------
lto.diff | 10 ----------
2 files changed, 8 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-25 21:42:57 UTC (rev 416456)
+++ PKGBUILD 2021-05-25 21:51:43 UTC (rev 416457)
@@ -2,7 +2,7 @@
# Contributor: Jan de Groot <jgc at archlinux.org>
pkgname=librsvg
-pkgver=2.50.5
+pkgver=2.50.6
pkgrel=1
epoch=2
pkgdesc="SVG rendering library"
@@ -12,11 +12,9 @@
depends=(gdk-pixbuf2 pango)
makedepends=(gobject-introspection vala gtk-doc git rust)
provides=(librsvg-${pkgver%%.*}.so)
-_commit=fd385e68b4eb50cdeffbd120d8165f5a695f44e8 # tags/2.50.5^0
-source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit"
- lto.diff)
-sha256sums=('SKIP'
- '3cc8ad1af515b2cb4071f0647319c1cf3280dc054875634239061800af1616b6')
+_commit=b78911f8dbcc218ac3fda63de37304fb332ca7fe # tags/2.50.6^0
+source=("git+https://gitlab.gnome.org/GNOME/librsvg.git#commit=$_commit")
+sha256sums=('SKIP')
pkgver() {
cd librsvg
@@ -25,15 +23,15 @@
prepare() {
cd librsvg
-
- # Turn LTO back on
- git apply -3 ../lto.diff
-
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd librsvg
+
+ # Use LTO
+ export CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
+
./configure --prefix=/usr --disable-static --enable-vala \
--enable-gtk-doc
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
Deleted: lto.diff
===================================================================
--- lto.diff 2021-05-25 21:42:57 UTC (rev 416456)
+++ lto.diff 2021-05-25 21:51:43 UTC (rev 416457)
@@ -1,10 +0,0 @@
-diff --git i/Cargo.toml w/Cargo.toml
-index 818fa620..c776b113 100644
---- i/Cargo.toml
-+++ w/Cargo.toml
-@@ -8,3 +8,5 @@ members = [
-
- [profile.release]
- debug = true
-+lto = "fat"
-+codegen-units = 1
More information about the arch-commits
mailing list