more verbose instructions for preparing BSD systems.

This commit is contained in:
isildur-g 2024-03-27 16:31:02 +02:00
parent 1ea53768a6
commit 17c78ff23c

View File

@ -115,6 +115,15 @@ Assuming an existing HomeBrew installation:
### *BSD
In NetBSD you will almost certainly need to have a newer compiler installed.
When using pkgsrc, you would typically do this using something
similar to
```
pkg_add gcc12-12.3.0.tgz
```
Version numbers etc will of course vary. One would either download the
binary package or build it using pkgsrc.
See https://www.netbsd.org/docs/software/packages.html for more information.
This will not replace the one in the standard base distribution, and
cmake will probably find the wrong compiler when it checks automatically.
Using the example of gcc12 from pkgsrc, one will need to set two
@ -126,6 +135,12 @@ export CXX="/usr/pkg/gcc12/bin/g++"
In FreeBSD similarly, you might want to install a different compiler.
Using the example of gcc12 from pkg:
installing the desired compiler:
```
pkg install gcc12
```
and then before beginning the cmake and build process, set
the environment variables to point to this compiler:
```
export CC="/usr/local/bin/gcc"
export CXX="/usr/local/bin/g++"