aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmyjona <jonathan.gonse@gmail.com>2022-09-15 04:38:47 -0700
committerGitHub <noreply@github.com>2022-09-15 04:38:47 -0700
commit8923441ff233b8c204c0b6530ff41a55060fbcba (patch)
tree51961105d1d90f1c7e59d615d58633572db20345
parentMerge pull request #8556 (diff)
downloadmonero-8923441ff233b8c204c0b6530ff41a55060fbcba.tar.xz
fix build in netbsd
-rw-r--r--CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b05c087cf..5c43e8795 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -449,15 +449,12 @@ endif()
# Check if we're on OpenBSD. See the README.md for build instructions.
if(CMAKE_SYSTEM_NAME MATCHES "kOpenBSD.*|OpenBSD.*")
set(OPENBSD TRUE)
+elseif(CMAKE_SYSTEM_NAME MATCHES "kNetBSD.*|NetBSD.*")
+ set(NETBSD TRUE)
+elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
+ set(BSDI TRUE)
endif()
-# TODO: check bsdi, NetBSD, to see if they need the same FreeBSD changes
-#
-# elseif(CMAKE_SYSTEM_NAME MATCHES "kNetBSD.*|NetBSD.*")
-# set(NETBSD TRUE)
-# elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
-# set(BSDI TRUE)
-
include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include)
if(APPLE)
@@ -531,7 +528,7 @@ add_definitions("-DBLOCKCHAIN_DB=${BLOCKCHAIN_DB}")
# Can't install hook in static build on OSX, because OSX linker does not support --wrap
# On ARM, having libunwind package (with .so's only) installed breaks static link.
# When possible, avoid stack tracing using libunwind in favor of using easylogging++.
-if (APPLE)
+if (APPLE OR NETBSD)
set(DEFAULT_STACK_TRACE OFF)
set(LIBUNWIND_LIBRARIES "")
elseif (DEPENDS AND NOT LINUX)