Skip to content

Commit

Permalink
Merge branch '10-exploratory-build-on-openbsd-75' into 1-enable-sparq…
Browse files Browse the repository at this point in the history
…l-query-of-hdt-storage
  • Loading branch information
donpellegrino committed Apr 29, 2024
2 parents e9ebaa1 + 4054db9 commit d728026
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,23 @@ The library layers in Oxigraph. The elements above depend on the elements below:

A preliminary benchmark [is provided](bench/README.md). There is also [a document describing Oxigraph technical architecture](https://github.com/oxigraph/oxigraph/wiki/Architecture).

## Building

When cloning this codebase, don't forget to clone the submodules using
`git clone --recursive https://github.com/oxigraph/oxigraph.git` to clone the repository including submodules or
`git submodule update --init` to add the submodules to the already cloned repository.

When building on OpenBSD, libclang must be available for
RocksDB. Setting the LIBCLANG_PATH environment variable will ensure it
is found. For example:

```
pkg_ad llvm
export LIBCLANG_PATH="/usr/local/llvm16/lib/libclang.so.0.0"
```

Running the test suite may require more memory or other resources than
available by default limits in OpenBSD.

## Help

Expand Down
10 changes: 8 additions & 2 deletions oxrocksdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,14 @@ fn build_rocksdb() {
config.define("ROCKSDB_LIB_IO_POSIX", None);
} else if target.contains("openbsd") {
config.define("OS_OPENBSD", None);
// Depends on `pkg_add llvm`
config.define("LIBCLANG_PATH", "/usr/local/llvm16/lib/libclang.so.0.0");

// Depends on `pkg_add llvm` installation and setting of
// LIBCLANG_PATH environment variable to location of the
// library. For example:
//
// export LIBCLANG_PATH=\
// "/usr/local/llvm16/lib/libclang.so.0.0"

config.define("ROCKSDB_PLATFORM_POSIX", None);
config.define("ROCKSDB_LIB_IO_POSIX", None);
}
Expand Down

0 comments on commit d728026

Please sign in to comment.