From: Pierre Ossman Date: Mon, 9 Dec 2019 12:33:48 +0000 (+0100) Subject: Fix link order of nettle and hogweed X-Git-Tag: v1.10.90~82 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ef3a70d1d1d3932a31e1785e4b687634f0c1ec6;p=tigervnc.git 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. --- 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")