fix openbsd build

master
Niko PLP 1 year ago
parent 74dee7a20f
commit 963faad14f
  1. 6
      README.md
  2. 5
      librocksdb-sys/build.rs

@ -14,6 +14,12 @@ rust-rocksdb
- Clang and LLVM
### On OpenBSD
```
pkg_add llvm
```
## Contributing
Feedback and pull requests welcome! If a particular feature of RocksDB is

@ -347,6 +347,11 @@ fn main() {
if !Path::new("rocksdb/AUTHORS").exists() {
update_submodules();
}
let target = env::var("TARGET").unwrap();
if target.contains("openbsd") {
env::set_var("LIBCLANG_PATH","/usr/local/lib");
}
bindgen_rocksdb();
if !try_to_find_and_link_lib("ROCKSDB") {

Loading…
Cancel
Save