fix(linux): keep bundled sqlite symbols out of the executable

This commit is contained in:
Erwan Leboucher committed 2026-08-28 20:25:43 +02:00
1 parent 3e50715a00
commit 11b513b665
1 file changed
+4
+4
View File
@@ -48,6 +48,10 @@ fn main() {
println!("cargo:rustc-link-arg-bins=-Wl,-rpath,$ORIGIN");
}
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
println!("cargo:rustc-link-arg-bins=-Wl,--exclude-libs,ALL");
}
// The notifications plugin links the Swift runtime via @rpath.
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg-bins=-Wl,-rpath,/usr/lib/swift");