mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 18:54:52 -04:00
Merge pull request #2730
ba1b89fb
Updated OpenBSD build instructions and fixed libressl linking issue (ston1th)
This commit is contained in:
commit
90d78b825a
2 changed files with 76 additions and 0 deletions
9
external/unbound/CMakeLists.txt
vendored
9
external/unbound/CMakeLists.txt
vendored
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue