aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDan Miller <pigeons>2017-02-08 14:50:14 -0800
committerDan Miller <dan@payb.ee>2017-02-09 11:22:12 -0800
commit737852639393033c33be171a5d096114bd975b64 (patch)
tree803958894b9ad5a6d05d5c18c5db0e06882b28a2 /CMakeLists.txt
parentMerge pull request #1679 (diff)
downloadmonero-737852639393033c33be171a5d096114bd975b64.tar.xz
backtrace_symbols() requires -lexecinfo on dragonflybsd
freebsd also needs -lexecinfo for backtrace()
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1bc6c4936..541a4493f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -607,11 +607,13 @@ endif()
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW)
set(EXTRA_LIBRARIES mswsock;ws2_32;iphlpapi)
-elseif(APPLE OR FREEBSD OR OPENBSD OR ANDROID)
+elseif(APPLE OR OPENBSD OR ANDROID)
set(EXTRA_LIBRARIES "")
+elseif(FREEBSD)
+ set(EXTRA_LIBRARIES execinfo)
elseif(DRAGONFLY)
find_library(COMPAT compat)
- set(EXTRA_LIBRARIES ${COMPAT})
+ set(EXTRA_LIBRARIES execinfo ${COMPAT})
elseif(NOT MSVC)
find_library(RT rt)
set(EXTRA_LIBRARIES ${RT})