11diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
2- index a8916a7d0..39ec7747b 100644
2+ index 5b7f69a56..5536debe8 100644
33--- a/external/CMakeLists.txt
44+++ b/external/CMakeLists.txt
5- @@ -37,34 +37,16 @@
5+ @@ -36,22 +36,9 @@
6+ # others.
67
78 find_package(Miniupnpc REQUIRED)
8-
9+ -
910- message(STATUS "Using in-tree miniupnpc")
11+ - set(UPNPC_NO_INSTALL TRUE CACHE BOOL "Disable miniupnp installation" FORCE)
1012- add_subdirectory(miniupnp/miniupnpc)
1113- set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
14+ - set_property(TARGET libminiupnpc-static PROPERTY POSITION_INDEPENDENT_CODE ON)
1215- if(MSVC)
1316- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
1417- elseif(NOT MSVC)
@@ -25,36 +28,16 @@ index a8916a7d0..39ec7747b 100644
2528
2629 find_package(Unbound)
2730
28- if(NOT UNBOUND_INCLUDE_DIR OR STATIC)
29- - # NOTE: If STATIC is true, CMAKE_FIND_LIBRARY_SUFFIXES has been reordered.
30- - # unbound has config tests which used OpenSSL libraries, so -ldl may need to
31- - # be set in this case.
32- - # The unbound CMakeLists.txt can set it, since it's also needed for the
33- - # static OpenSSL libraries set up there after with target_link_libraries.
34- - add_subdirectory(unbound)
35- -
36- - set(UNBOUND_STATIC true PARENT_SCOPE)
37- - set(UNBOUND_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/unbound/libunbound" PARENT_SCOPE)
38- - set(UNBOUND_LIBRARY "unbound" PARENT_SCOPE)
39- - set(UNBOUND_LIBRARY_DIRS "${LIBEVENT2_LIBDIR}" PARENT_SCOPE)
40- + set(UNBOUND_STATIC false PARENT_SCOPE)
41- + set(UPNP_INCLUDE ${MINIUPNP_INCLUDE_DIR} PARENT_SCOPE)
42- + set(UPNP_LIBRARIES ${MINIUPNP_LIBRARY} PARENT_SCOPE)
43- else()
44- message(STATUS "Found libunbound include (unbound.h) in ${UNBOUND_INCLUDE_DIR}")
45- if(UNBOUND_LIBRARIES)
46- @@ -81,4 +63,5 @@ endif()
31+ @@ -69,4 +56,3 @@ endif()
4732 add_subdirectory(db_drivers)
4833 add_subdirectory(easylogging++)
4934 add_subdirectory(qrcodegen)
5035- add_subdirectory(randomx EXCLUDE_FROM_ALL)
51- +
52- + find_library(RANDOMX_LIBRARIES NAMES RandomX)
5336diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
54- index 175741146..088b582f7 100644
37+ index d4b39869c..13071d898 100644
5538--- a/src/p2p/net_node.inl
5639+++ b/src/p2p/net_node.inl
57- @@ -60 ,9 +60 ,9 @@
40+ @@ -61 ,9 +61 ,9 @@
5841 #include "cryptonote_core/cryptonote_core.h"
5942 #include "net/parse.h"
6043
0 commit comments