From 852ff184d24a1a12be967d51c6df93ddafb8a302 Mon Sep 17 00:00:00 2001 From: N00byKing Date: Tue, 10 Apr 2018 19:02:18 +0200 Subject: [PATCH] Remove curl references --- Building-for-OpenBSD.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Building-for-OpenBSD.md b/Building-for-OpenBSD.md index b2684a1..65195c1 100644 --- a/Building-for-OpenBSD.md +++ b/Building-for-OpenBSD.md @@ -2,7 +2,7 @@ Install the required packages: (Please amend if you notice some are missing, I did not test this on a clean installation!) ``` -pkg_add cmake curl sdl2 qtbase +pkg_add cmake sdl2 qtbase ``` The repository uses submodules, so remember to clone it recursively: ``` @@ -15,8 +15,7 @@ mkdir build && cd build export Qt5_DIR=/usr/local/lib/qt5/cmake/Qt5 cmake \ -DCMAKE_CXX_FLAGS='-I/usr/local/include -O2' \ - -DCMAKE_EXE_LINKER_FLAGS='-z wxneeded' \ - -DUSE_SYSTEM_CURL=1 .. + -DCMAKE_EXE_LINKER_FLAGS='-z wxneeded' .. make ``` Rationale: @@ -24,6 +23,5 @@ Rationale: + `-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?) + 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. -+ `USE_SYSTEM_CURL=1` was copied from the [Linux build instructions][1]. [1]: Building-for-Linux \ No newline at end of file