@@ -146,6 +146,7 @@ export CXX="/usr/pkg/gcc12/bin/g++"
146146```
147147
148148In FreeBSD similarly, you might want to install a different compiler.
149+ If you want to use gcc, it is recommended to use gcc12.
149150You will also, as in NetBSD, need to install cmake, sqlite, boost and ragel packages.
150151Using the example of gcc12 from pkg:
151152installing the desired compiler:
@@ -164,7 +165,6 @@ the environment variables to point to this compiler:
164165export CC="/usr/local/bin/gcc"
165166export CXX="/usr/local/bin/g++"
166167```
167-
168168A further note in FreeBSD, on the PowerPC and ARM platforms,
169169the gcc12 package installs to a slightly different name, on FreeBSD/ppc,
170170gcc12 will be found using:
@@ -175,12 +175,6 @@ export CXX="/usr/local/bin/g++12"
175175
176176Then continue with the build as below.
177177
178- A note about running in FreeBSD: if you built a dynamically linked binary
179- with an alternative compiler, the libraries specific to the compiler that
180- built the binary will probably not be found and the base distro libraries
181- in /lib will be found instead. Adjust LD_LIBRARY_PATH appropriately. For
182- example, with gcc12 installed from pkg, one would want to use
183- ``` export LD_LIBRARY_PATH=/usr/local/lib/gcc12/ ```
184178
185179## Configure & build
186180
0 commit comments