summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-19 14:56:34 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-19 15:05:26 +0000
commitbf79fdbb43d8f3e93ce9eea67bff8d17dde29b10 (patch)
tree6661e44de47e8e0e4e81ee96206df230ede7ae17 /cmake
parent7c05b3a85ecdaae0c6e786ce6946835c3219fca4 (diff)
Link -lsocket and -lnsl for socket functions on Solaris.
Also, added some #defines to make symbols visible that are in BSD but not in UNIX. Solaris needs these, since it's fairly strict with its symbol visibility in system headers.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Dependencies.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index b3e57e50..5970fde7 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -8,7 +8,9 @@ include(ModulePackage)
8 8
9find_package(Threads REQUIRED) 9find_package(Threads REQUIRED)
10 10
11find_library(NSL_LIBRARIES nsl )
11find_library(RT_LIBRARIES rt ) 12find_library(RT_LIBRARIES rt )
13find_library(SOCKET_LIBRARIES socket )
12 14
13# For toxcore. 15# For toxcore.
14pkg_use_module(LIBSODIUM libsodium ) 16pkg_use_module(LIBSODIUM libsodium )