summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2019-12-09 13:33:48 +0100
committerPierre Ossman <ossman@cendio.se>2019-12-20 08:00:38 +0100
commitd42625216fad9136e903e36694d78b670510ae90 (patch)
tree75892bd98d5f1a04f388214b06dd3f14b1e859db
parent6c47340e095258a959c95db9aa2a6c715d62bf7c (diff)
downloadtigervnc-d42625216fad9136e903e36694d78b670510ae90.tar.gz
tigervnc-d42625216fad9136e903e36694d78b670510ae90.zip
Fix link order of nettle and hogweed
Hogweed needs nettle, not the other way around. So make sure they are specified in the correct order for the static link to succeed. (cherry picked from commit 5ef3a70d1d1d3932a31e1785e4b687634f0c1ec6)
-rw-r--r--cmake/StaticBuild.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index 38177a1c..e539619e 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -41,7 +41,7 @@ if(BUILD_STATIC)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -ltasn1")
endif()
if(NETTLE_LIBRARY)
- set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lnettle -lhogweed -lgmp")
+ set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lhogweed -lnettle -lgmp")
endif()
if(GCRYPT_LIBRARY)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lgcrypt -lgpg-error")