Updated Building for OpenBSD (markdown)
parent
1db3e30405
commit
1a1d763bdf
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ cmake \
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
Rationale:
|
Rationale:
|
||||||
+ Setting `Qt5_DIR` is necessary because OpenBSD installs the Qt5 CMake files under a nonstandard path.
|
+ Setting `Qt5_DIR` is necessary because cmake does not know to look for it under `/usr/local/lib/qt5/cmake` by default.
|
||||||
+ `-I/usr/local/include` is needed for the compiler to find `iconv.h`, as the base compiler does not look under `/usr/local/include` by default.
|
+ `-I/usr/local/include` is needed for the compiler to find `iconv.h`, as the base compiler does not look under `/usr/local/include` by default.
|
||||||
+ `-O2` is needed for playable performance; this needs to be set even if `CMAKE_BUILD_TYPE=Release`, as it does not set optimization flags by default (perhaps because the base amd64 compiler is clang?)
|
+ `-O2` is needed for playable performance; this needs to be set even if `CMAKE_BUILD_TYPE=Release`, as it does not set optimization flags by default (perhaps because the base amd64 compiler is clang?)
|
||||||
+ Linking with `-z wxneeded` is needed to enable writable-executable memory on OpenBSD. The resulting binary still needs to be run a partition with `wxallowed` set in the mount flags; `/usr/local` is mounted like this by default.
|
+ Linking with `-z wxneeded` is needed to enable writable-executable memory on OpenBSD. The resulting binary still needs to be run a partition with `wxallowed` set in the mount flags; `/usr/local` is mounted like this by default.
|
||||||
|
|
Loading…
Reference in a new issue