Disable LTO in PKGBUILD (vendored ring/mlua static libs vs makepkg -flto)

This commit is contained in:
Breadway 2026-06-13 17:06:54 +08:00
parent 4b4d222784
commit 289fc1c827

View file

@ -7,6 +7,10 @@ pkgdesc="Minimal status bar and notification daemon for Hyprland"
arch=('x86_64') arch=('x86_64')
url="https://github.com/Breadway/breadbar" url="https://github.com/Breadway/breadbar"
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' 'libpulse' 'iw') depends=('gtk4' 'gtk4-layer-shell' 'libpulse' 'iw')
optdepends=( optdepends=(
'hyprland: workspace and window data integration' 'hyprland: workspace and window data integration'