From: Pierre Ossman Date: Mon, 7 Dec 2020 11:34:03 +0000 (+0100) Subject: Fix bad library references for some static deps X-Git-Tag: v1.11.90~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb13d1be689e369d19d75d74c8a6b127d416d3e3;p=tigervnc.git Fix bad library references for some static deps --- diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake index c7c93526..1af9893b 100644 --- a/cmake/StaticBuild.cmake +++ b/cmake/StaticBuild.cmake @@ -63,7 +63,7 @@ if(BUILD_STATIC) FIND_LIBRARY(TASN1_LIBRARY NAMES tasn1 libtasn1 HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS}) FIND_LIBRARY(IDN2_LIBRARY NAMES idn2 libidn2 - HINTS ${PC_GETTEXT_LIBDIR} ${PC_GETTEXT_LIBRARY_DIRS}) + HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS}) set(GNUTLS_LIBRARIES "-Wl,-Bstatic -lgnutls") @@ -77,7 +77,7 @@ if(BUILD_STATIC) set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lgcrypt -lgpg-error") endif() if(IDN2_LIBRARY) - set(GETTEXT_LIBRARIES "${GETTEXT_LIBRARIES} -lidn2") + set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lidn2") endif() set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -Wl,-Bdynamic")