fix: disable makepkg LTO for mixed Rust and C archives

This commit is contained in:
Kevin Yue committed 2026-11-06 01:19:54 +08:00
1 parent 1202ca6c81
commit a949b175d4
2 files changed
+3 -1

No files matched your search

@@ -43,6 +43,7 @@ pkgbase = globalprotect-openconnect-git
provides = gpgui
conflicts = globalprotect-openconnect
options = !strip
options = !lto
source = globalprotect-openconnect::git+https://github.com/yuezk/GlobalProtect-openconnect.git#branch=main
sha256sums = SKIP
@@ -22,7 +22,8 @@ source=("${_pkgname_prefix}::git+https://github.com/yuezk/GlobalProtect-openconn
sha256sums=("SKIP")
options=('!strip')
# GCC LTO objects from native dependencies cannot be linked by Rust's LLD.
options=('!strip' '!lto')
pkgver() {
cd "${_pkgname_prefix}"