I gave up and just put it in a Docker image, it's not as important as the beacons being statically compiled
10 lines
367 B
Rust
10 lines
367 B
Rust
fn main() {
|
|
include!("../build_common.rs");
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("linux") {
|
|
let capdir = std::env::var("SPARSE_BUILD_LIBCAP").unwrap();
|
|
println!("cargo:rustc-link-search=native={capdir}/lib");
|
|
println!("cargo:rustc-link-lib=static=cap");
|
|
println!("cargo:rustc-link-lib=static=psx");
|
|
}
|
|
}
|