fn main() {
let target = std::env::var("TARGET").unwrap_or_default();
if target.contains("apple-darwin") {
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path");
} else if target.contains("linux") {
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
}
}