Avoiding corruption of static libraries.
I installed pacman-static to build paru-static, but got an error when linking. The format of the static library may be wrong. I built and installed pacman-static in my environment, and paru-static also built without problems. Wouldn't the standard be better with lto off?
- disable lto
diff --git a/PKGBUILD b/PKGBUILD
index ddd0138..5f83527 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,10 +20,10 @@ pkgrel=1
pkgdesc="Statically-compiled pacman (to fix or install systems without libc)"
arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://www.archlinux.org/pacman/"
-license=('GPL')
+license=('GPL-2.0-or-later')
depends=('pacman')
makedepends=('meson' 'musl' 'kernel-headers-musl')
-options=('!emptydirs')
+options=('!emptydirs' '!lto')
# pacman
source=("https://gitlab.archlinux.org/pacman/pacman/-/releases/v$pkgver/downloads/pacman-$pkgver.tar.xz"{,.sig}