mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-20 03:57:03 +00:00
Separate build scripts for bin and library to fix macos ffmpeg library linking
This commit is contained in:
parent
abf7f55008
commit
73c2d7d7db
8
gossip-bin/build.rs
Normal file
8
gossip-bin/build.rs
Normal file
@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
// link to bundled libraries
|
||||
#[cfg(target_os = "macos")]
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path");
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
|
||||
}
|
@ -6,11 +6,4 @@ fn main() {
|
||||
.unwrap();
|
||||
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
||||
|
||||
// link to bundled libraries
|
||||
#[cfg(target_os = "macos")]
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,@loader_path");
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
println!("cargo:rustc-link-arg=-Wl,-rpath,$ORIGIN");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user