summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-02-13 13:46:16 +0100
committerPierre Ossman <ossman@cendio.se>2015-02-13 13:46:16 +0100
commitf481203dc078287447b4367769c890ab7815d7cf (patch)
tree9966c58ac0bae953c99c0502f2b563b331eeda8e /cmake
parentc4bc5a8f0eeacbebb50a2ef79c7b03b64586475a (diff)
parent4daa7b1172cd4606b60f8245831bc5aa155c4b9e (diff)
downloadtigervnc-f481203dc078287447b4367769c890ab7815d7cf.tar.gz
tigervnc-f481203dc078287447b4367769c890ab7815d7cf.zip
Merge branch 'perf' of https://github.com/CendioOssman/tigervnc
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 1ac4f6e3..0ec3361e 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