]> source.dussan.org Git - tigervnc.git/commitdiff
Fix link order of nettle and hogweed
authorPierre Ossman <ossman@cendio.se>
Mon, 9 Dec 2019 12:33:48 +0000 (13:33 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 9 Dec 2019 12:33:48 +0000 (13:33 +0100)
Hogweed needs nettle, not the other way around. So make sure they
are specified in the correct order for the static link to succeed.

cmake/StaticBuild.cmake

index 38177a1c9ba60840851f51fad7865398fc014724..e539619e41472344ec9feffa9d0a6968bea81789 100644 (file)
@@ -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")