summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-02-13 11:12:42 +0100
committerPierre Ossman <ossman@cendio.se>2015-02-13 11:13:53 +0100
commit95763a63e80ce31563a60fd6e0c65d6d8d688acd (patch)
tree34b92848b03b31e30d8e9c0eb97e9f541d3559b5 /cmake
parent0f2fbc05e448690a22132b81fbc3f79810f2a835 (diff)
downloadtigervnc-95763a63e80ce31563a60fd6e0c65d6d8d688acd.tar.gz
tigervnc-95763a63e80ce31563a60fd6e0c65d6d8d688acd.zip
GnuTLS needs socket libraries so include them in the static link
Diffstat (limited to 'cmake')
-rw-r--r--cmake/StaticBuild.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index 49706bd3..0b990357 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -47,14 +47,18 @@ if(BUILD_STATIC)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -Wl,-Bdynamic")
- # GnuTLS uses various crypto-api stuff
if (WIN32)
+ # GnuTLS uses various crypto-api stuff
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lcrypt32")
+ # And sockets
+ set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lws2_32")
endif()
- # nanosleep() lives here on Solaris
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
+ # nanosleep() lives here on Solaris
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lrt")
+ # and socket functions are hidden here
+ set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lsocket")
endif()
# GnuTLS uses gettext and zlib, so make sure those are always