mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
13 lines
504 B
Rust
13 lines
504 B
Rust
- workaround for https://github.com/vlaci/pyperscan/issues/38
|
|
|
|
--- hyperscan-sys/build.rs.orig 2023-12-15 06:47:41 UTC
|
|
+++ hyperscan-sys/build.rs
|
|
@@ -118,6 +118,8 @@ fn main() {
|
|
println!("cargo:rustc-link-lib=hs");
|
|
}
|
|
|
|
+ config = config.clang_arg(format!("-I{}/include", env::var("FREEBSD_LOCALBASE").unwrap()));
|
|
+ config = config.clang_arg(format!("-L{}/lib", env::var("FREEBSD_LOCALBASE").unwrap()));
|
|
config
|
|
.generate()
|
|
.expect("Unable to generate bindings")
|