Disable LTO in PKGBUILD to fix vendored Lua static link
makepkg's default -flto=auto made mlua's vendored liblua5.4.a contain GCC LTO bitcode that the Rust (lld) link couldn't read, leaving all lua_* symbols undefined. options=(!lto) produces a clean static link. Verified building in a clean archlinux container.
This commit is contained in:
parent
d454e832d9
commit
d2d0ebc25e
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,10 @@ pkgdesc="A reactive automation fabric for Linux desktops"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/Breadway/bread"
|
url="https://github.com/Breadway/bread"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
|
# mlua builds Lua from vendored C source. makepkg's default -flto=auto would
|
||||||
|
# emit GCC LTO bitcode into liblua5.4.a, which the Rust (lld) link can't read,
|
||||||
|
# leaving all lua_* symbols undefined. Disable LTO for a clean static link.
|
||||||
|
options=(!lto)
|
||||||
depends=('glibc' 'libgit2')
|
depends=('glibc' 'libgit2')
|
||||||
optdepends=(
|
optdepends=(
|
||||||
'libnotify: desktop notifications via bread.notify()'
|
'libnotify: desktop notifications via bread.notify()'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue