From 12a8fa00bb08fc1b6a761182d7d9445759a6eb0d Mon Sep 17 00:00:00 2001 From: Breadway Date: Sat, 13 Jun 2026 17:06:53 +0800 Subject: [PATCH] Disable LTO in PKGBUILD (vendored ring/mlua static libs vs makepkg -flto) Co-Authored-By: Claude Opus 4.8 --- packaging/arch/PKGBUILD | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index 60a7521..f6e6fef 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -7,6 +7,10 @@ pkgdesc="System settings app for Bread OS" arch=('x86_64') url="https://github.com/Breadway/bos" 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' 'glib2' 'hicolor-icon-theme') optdepends=( 'snapper: snapshot management view'