support building on NetBSD

This commit is contained in:
G.E.
2024-03-06 10:48:56 +01:00
parent 2523208e08
commit 205bcbb060
5 changed files with 34 additions and 1 deletions

View File

@@ -113,6 +113,17 @@ Assuming an existing HomeBrew installation:
% brew install boost cmake gcc libpcap pkg-config ragel sqlite
```
### NetBSD
In NetBSD you will almost certainly need to have a newer compiler installed.
Using the example of gcc12 from pkgsrc, one will need to set three
environment variables before starting:
export CC="/usr/pkg/gcc12/bin/cc"
export CXX="/usr/pkg/gcc12/bin/g++"
export CXXFLAGS="-gdwarf-4"
Then continue with the build as below.
## Configure & build
In order to configure with `cmake` first create and cd into a build directory: