mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
Merge pull request #532 from bu5hm4nn/bug/fix-macos-ffmpeg-linking
Fix macOS linking
This commit is contained in:
commit
7848ceb056
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();
|
.unwrap();
|
||||||
let git_hash = String::from_utf8(output.stdout).unwrap();
|
let git_hash = String::from_utf8(output.stdout).unwrap();
|
||||||
println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
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