From 8560b09dad11202f7c1edfd40519ecf70cc2cc33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 15 Apr 2020 22:50:27 +0200 Subject: [PATCH] relay: add missing gcrypt lib in CMake and autotools files This fixes build on Cygwin. --- src/plugins/relay/CMakeLists.txt | 2 ++ src/plugins/relay/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/relay/CMakeLists.txt b/src/plugins/relay/CMakeLists.txt index 2d662003e..a86b32d5e 100644 --- a/src/plugins/relay/CMakeLists.txt +++ b/src/plugins/relay/CMakeLists.txt @@ -50,6 +50,8 @@ if(GNUTLS_FOUND) list(APPEND LINK_LIBS ${GNUTLS_LIBRARY}) endif() +list(APPEND LINK_LIBS ${GCRYPT_LDFLAGS}) + target_link_libraries(relay ${LINK_LIBS} coverage_config) install(TARGETS relay LIBRARY DESTINATION ${WEECHAT_LIBDIR}/plugins) diff --git a/src/plugins/relay/Makefile.am b/src/plugins/relay/Makefile.am index 36914ae8f..148559dba 100644 --- a/src/plugins/relay/Makefile.am +++ b/src/plugins/relay/Makefile.am @@ -17,7 +17,7 @@ # along with WeeChat. If not, see . # -AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ZLIB_CFLAGS) $(GNUTLS_CFLAGS) +AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ZLIB_CFLAGS) $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) libdir = ${weechat_libdir}/plugins @@ -61,6 +61,6 @@ relay_la_SOURCES = relay.c \ weechat/relay-weechat-protocol.h relay_la_LDFLAGS = -module -no-undefined -relay_la_LIBADD = $(RELAY_LFLAGS) $(ZLIB_LFLAGS) $(GNUTLS_LFLAGS) +relay_la_LIBADD = $(RELAY_LFLAGS) $(ZLIB_LFLAGS) $(GCRYPT_LFLAGS) $(GNUTLS_LFLAGS) EXTRA_DIST = CMakeLists.txt