mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #656
9832d18
cmake: Include OpenSSL libraries in static linking (warptangent)c2f2437
cmake: Remove unused variable (warptangent)7205210
cmake: Fix unbound config compile settings (warptangent)3e72d97
cmake: Fix overly broad use of dynamic link settings (warptangent)
This commit is contained in:
commit
354d478286
@ -437,7 +437,7 @@ elseif(APPLE OR FREEBSD OR OPENBSD)
|
||||
set(EXTRA_LIBRARIES "")
|
||||
elseif(NOT MSVC)
|
||||
find_library(RT rt)
|
||||
set(EXTRA_LIBRARIES ${RT} ${DL})
|
||||
set(EXTRA_LIBRARIES ${RT})
|
||||
endif()
|
||||
|
||||
include(version.cmake)
|
||||
|
5
external/CMakeLists.txt
vendored
5
external/CMakeLists.txt
vendored
@ -76,6 +76,11 @@ endif()
|
||||
find_package(Unbound)
|
||||
|
||||
if(NOT UNBOUND_INCLUDE_DIR OR STATIC)
|
||||
# NOTE: If STATIC is true, CMAKE_FIND_LIBRARY_SUFFIXES has been reordered.
|
||||
# unbound has config tests which used OpenSSL libraries, so -ldl may need to
|
||||
# be set in this case.
|
||||
# The unbound CMakeLists.txt can set it, since it's also needed for the
|
||||
# static OpenSSL libraries set up there after with target_link_libraries.
|
||||
add_subdirectory(unbound)
|
||||
|
||||
set(UNBOUND_STATIC true PARENT_SCOPE)
|
||||
|
6
external/unbound/CMakeLists.txt
vendored
6
external/unbound/CMakeLists.txt
vendored
@ -40,6 +40,12 @@ if (APPLE)
|
||||
endif()
|
||||
|
||||
find_package(OpenSSL REQUIRED)
|
||||
if(STATIC)
|
||||
if(UNIX)
|
||||
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
include(configure_checks.cmake)
|
||||
|
@ -63,15 +63,6 @@ function (bitmonero_add_executable name)
|
||||
set_property(TARGET "${name}"
|
||||
PROPERTY
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||
|
||||
if (STATIC)
|
||||
set_property(TARGET "${name}"
|
||||
PROPERTY
|
||||
LINK_SEARCH_START_STATIC 1)
|
||||
set_property(TARGET "${name}"
|
||||
PROPERTY
|
||||
LINK_SEARCH_END_STATIC 1)
|
||||
endif ()
|
||||
endfunction ()
|
||||
|
||||
function (bitmonero_add_library name)
|
||||
|
Loading…
Reference in New Issue
Block a user