aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-03-21 09:40:55 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2023-03-21 14:36:48 +0000
commit724441a782acf683fbfc07589f61ad11de7bf347 (patch)
tree314420a72ec299a8a75af09967a37c5d6c3e5c82
parentMerge pull request #8775 (diff)
downloadmonero-724441a782acf683fbfc07589f61ad11de7bf347.tar.xz
link against libz on non Apple/Windows
Needed by libcrypto at least
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c088f26d..0fe496c9f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1113,7 +1113,8 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "(SunOS|Solaris)")
set(EXTRA_LIBRARIES socket nsl resolv)
elseif(NOT MSVC AND NOT DEPENDS)
find_library(RT rt)
- set(EXTRA_LIBRARIES ${RT})
+ find_library(Z z)
+ set(EXTRA_LIBRARIES ${RT} ${Z})
endif()
list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})