aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorston1th <ston1th@giftfish.de>2017-11-28 18:55:37 +0100
committerston1th <ston1th@giftfish.de>2017-11-28 19:03:07 +0100
commit25f4ab81cee4ad505ffeba301e5e74b9bb8639d8 (patch)
tree719d6a3b6eda96b0869b5aef7342773b9d4f4c9f
parentMerge pull request #2863 (diff)
downloadmonero-25f4ab81cee4ad505ffeba301e5e74b9bb8639d8.tar.xz
fixed linking against libreadline on OpenBSD
To fix the linking error described here https://github.com/monero-project/monero/pull/2841#issuecomment-346129030 we also need to link libcurses.
-rw-r--r--cmake/FindReadline.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindReadline.cmake b/cmake/FindReadline.cmake
index 5a8aa7b0a..cdce0bfca 100644
--- a/cmake/FindReadline.cmake
+++ b/cmake/FindReadline.cmake
@@ -68,3 +68,7 @@ main()
if(NOT Readline_LIBRARY)
set(Readline_LIBRARY "")
endif()
+
+if(Readline_LIBRARY AND OPENBSD)
+ list(APPEND EXTRA_LIBRARIES curses)
+endif()