From d2bb711bf1a45785b730bc9eab9c55d675c1f175 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Bisinger?= Date: Mon, 9 Nov 2009 23:34:43 +0000 Subject: [PATCH] Added -lgnutls when linking with GNUTLS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When linking with the --no-add-needed option, the linker complains of undefined references because no -lgnutls is directly specified to the linker itself. This commit adds -lgnutls to the libraries when using GNUTLS Signed-off-by: Stéphane Bisinger Signed-off-by: Boris Petersen --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b369c5d..d650f99 100644 --- a/configure.ac +++ b/configure.ac @@ -205,7 +205,7 @@ if test "x$with_ssl" != "xno"; then fi CXXFLAGS="$CXXFLAGS $LIBGNUTLS_CFLAGS" - LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra" + LIBS="$LIBS $LIBGNUTLS_LIBS -lgnutls-extra -lgnutls" AC_DEFINE(HAVE_GNUTLS, 1, [use gnutls]) with_ssl="yes" ], AC_MSG_ERROR( -- 2.11.4.GIT