Skip to content

Commit

Permalink
Don't link gcrypt for static GnuTLS
Browse files Browse the repository at this point in the history
GnuTLS seems to have dropped grypt support ages ago, so let's not
confuse things by assuming it might be needed when linking GnuTLS
statically.
  • Loading branch information
CendioOssman committed Mar 15, 2024
1 parent 97dd7f1 commit 90e9db2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmake/StaticBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ if(BUILD_STATIC)

if(GNUTLS_FOUND)
# GnuTLS has historically had different crypto backends
FIND_LIBRARY(GCRYPT_LIBRARY NAMES gcrypt libgcrypt
HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
FIND_LIBRARY(NETTLE_LIBRARY NAMES nettle libnettle
HINTS ${PC_GNUTLS_LIBDIR} ${PC_GNUTLS_LIBRARY_DIRS})
FIND_LIBRARY(TASN1_LIBRARY NAMES tasn1 libtasn1
Expand All @@ -73,9 +71,6 @@ if(BUILD_STATIC)
if(NETTLE_LIBRARY)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lhogweed -lnettle -lgmp")
endif()
if(GCRYPT_LIBRARY)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lgcrypt -lgpg-error")
endif()
if(IDN2_LIBRARY)
set(GNUTLS_LIBRARIES "${GNUTLS_LIBRARIES} -lidn2")
endif()
Expand Down

0 comments on commit 90e9db2

Please sign in to comment.