Skip to content

Commit

Permalink
Add further build instructions for C API
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jan 22, 2024
1 parent d26ab7e commit c5bdd9d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions capi/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Further compilation instructions

## Shared libraries on MacOS

On MacOS the environment variable `LD_LIBRARY_PATH` is replaced by `DYLD_LIBRARY_PATH`.

## Nix vs Clang

Same of what is specified in the [README](./README.md), but to use the GCC compiler,
which is not necessarily the default (e.g. on MacOS), add a suitable CMake flag

```bash
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=<your install prefix> -D CMAKE_CXX_COMPILER=g++
cmake --build build
cmake --install build
```

0 comments on commit c5bdd9d

Please sign in to comment.