mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-24 11:01:17 -08:00
fix(linux): keep bundled sqlite symbols out of the executable
This commit is contained in:
1 file changed
+4
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user