devenv: link libghostty-vt dynamically

The static libghostty-vt archive fails to link into devenv on staging-next. Mold reports undefined symbols from compiler_rt.o, while ld.bfd rejects overlapping FDEs. Enable the link-dynamic feature so Cargo uses the packaged shared library.

Assisted-by: OpenAI Codex (GPT-6)
This commit is contained in:
Domen Kožar
2026-09-28 18:06:18 +02:00
parent e20e029207
commit 51564ebe4e

View File

@@ -60,6 +60,11 @@ buildRustPackage {
cargoHash = "sha256-ed2k0D5tp7tlvpqXdxr4uGJozI2gvW1Dvz1SSJDR4NI=";
postPatch = ''
substituteInPlace Cargo.toml \
--replace-fail '"pkg-config",' '"pkg-config", "link-dynamic",'
'';
env = {
RUSTFLAGS = "--cfg tracing_unstable";
LIBSQLITE3_SYS_USE_PKG_CONFIG = "1";