diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-19 14:56:34 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-19 15:05:26 +0000 |
commit | bf79fdbb43d8f3e93ce9eea67bff8d17dde29b10 (patch) | |
tree | 6661e44de47e8e0e4e81ee96206df230ede7ae17 /cmake | |
parent | 7c05b3a85ecdaae0c6e786ce6946835c3219fca4 (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.cmake | 2 |
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 | ||
9 | find_package(Threads REQUIRED) | 9 | find_package(Threads REQUIRED) |
10 | 10 | ||
11 | find_library(NSL_LIBRARIES nsl ) | ||
11 | find_library(RT_LIBRARIES rt ) | 12 | find_library(RT_LIBRARIES rt ) |
13 | find_library(SOCKET_LIBRARIES socket ) | ||
12 | 14 | ||
13 | # For toxcore. | 15 | # For toxcore. |
14 | pkg_use_module(LIBSODIUM libsodium ) | 16 | pkg_use_module(LIBSODIUM libsodium ) |