Disable LTO in PKGBUILD (vendored ring/mlua static libs vs makepkg -flto)
All checks were successful
Mirror to GitHub / mirror (push) Successful in 6s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Breadway 2026-06-13 17:06:55 +08:00
parent f7ad3b494f
commit f586360101

View file

@ -7,6 +7,10 @@ pkgdesc="App launcher for Hyprland / Wayland"
arch=('x86_64') arch=('x86_64')
url="https://github.com/Breadway/breadbox" url="https://github.com/Breadway/breadbox"
license=('MIT') license=('MIT')
# Some Rust deps (ring/mlua) build vendored C/asm into static archives; makepkg's
# default -flto=auto emits GCC LTO bitcode the Rust (lld) link cannot read,
# causing undefined-symbol errors. Disable LTO.
options=(!lto)
depends=('gtk4' 'gtk4-layer-shell' 'librsvg') depends=('gtk4' 'gtk4-layer-shell' 'librsvg')
optdepends=( optdepends=(
'hyprland: window and workspace integration' 'hyprland: window and workspace integration'