diff options
author | ston1th <ston1th@giftfish.de> | 2017-10-27 00:15:18 +0200 |
---|---|---|
committer | ston1th <ston1th@giftfish.de> | 2017-10-27 18:18:18 +0200 |
commit | ba1b89fbb7a2fde9b07fa906cdd3c1f4c3721a22 (patch) | |
tree | 8e864fd8c9f6f7197eab2993e9dbd6c7b39b4e84 /external/unbound/CMakeLists.txt | |
parent | Merge pull request #2601 (diff) | |
download | monero-ba1b89fbb7a2fde9b07fa906cdd3c1f4c3721a22.tar.xz |
Updated OpenBSD build instructions and fixed libressl linking issue
Issue: #2575
Build instructions for OpenBSD 6.2:
* boost (built with clang)
* cppzmq
Fixed a issue, where cmake was not able to find and link against libressl in unbound.
restored OpenBSD 5.8 build instructions
Diffstat (limited to 'external/unbound/CMakeLists.txt')
-rw-r--r-- | external/unbound/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/external/unbound/CMakeLists.txt b/external/unbound/CMakeLists.txt index 3dae8b425..8ac4bbd84 100644 --- a/external/unbound/CMakeLists.txt +++ b/external/unbound/CMakeLists.txt @@ -60,6 +60,15 @@ if (CMAKE_USE_WIN32_THREADS_INIT) else () set(HAVE_WINDOWS_THREADS 0) endif () + +# determine if we have libressl +check_symbol_exists(LIBRESSL_VERSION_TEXT "openssl/opensslv.h" HAVE_LIBRESSL) +# check if we have found HAVE_DECL_REALLOCARRAY already, so we can safely undefine and redefine it with value 1 +if (HAVE_LIBRESSL AND HAVE_DECL_REALLOCARRAY) + unset(HAVE_DECL_REALLOCARRAY CACHE) + add_definitions(-DHAVE_DECL_REALLOCARRAY=1) +endif () + configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h") |