PKGBUILD: disable makepkg LTO, it breaks linking the C crypto library

This commit is contained in:
2026-11-27 17:51:28 +01:00
parent f455776c63
commit c3b8849693
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -11,6 +11,8 @@ makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git')
optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring') optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring')
provides=('knock') provides=('knock')
conflicts=('knock' 'knock-bin') conflicts=('knock' 'knock-bin')
# aws-lc and sqlite are C; makepkg's LTO flags produce objects the Rust linker cannot read.
options=('!lto')
source=("knock::git+$url.git") source=("knock::git+$url.git")
sha256sums=('SKIP') sha256sums=('SKIP')
+2
View File
@@ -10,6 +10,8 @@ depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git') makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git')
optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring') optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring')
conflicts=('knock-bin') conflicts=('knock-bin')
# aws-lc and sqlite are C; makepkg's LTO flags produce objects the Rust linker cannot read.
options=('!lto')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP') sha256sums=('SKIP')