From 25f4ab81cee4ad505ffeba301e5e74b9bb8639d8 Mon Sep 17 00:00:00 2001 From: ston1th Date: Tue, 28 Nov 2017 18:55:37 +0100 Subject: [PATCH] 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. --- cmake/FindReadline.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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()