feat: initial commit with build system
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "freebsd" {
|
||||
let freebsd_libs = std::env::var("FREEBSD_LIBS").unwrap();
|
||||
println!("cargo:rustc-link-arg=--sysroot={freebsd_libs}");
|
||||
println!("cargo:rustc-link-arg=-L{freebsd_libs}/lib");
|
||||
println!("cargo:rustc-link-arg=-L{freebsd_libs}/usr/lib");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user