From 0619d86e5cb16b75e15005613d03c5d0106088dc Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 18 Feb 2019 13:14:33 -0300 Subject: [PATCH] build: fix linking to libconfd Commit fdbd8086b1e1 removed the explicit -lconfd flag from lib_confd_la_LIBADD in favor of using the CONFD_LIBS variable. The problem, however, is that ConfD doesn't use pkg-config nor anything similar, so CONFD_LIBS is not created automatically by autotools. Fix this problem by manually assigning -lconfd to the CONFD_LIBS variable in the configure script. Signed-off-by: Renato Westphal --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 936e1ccda6..488a1380b2 100755 --- a/configure.ac +++ b/configure.ac @@ -1659,6 +1659,8 @@ if test "$enable_confd" != "" -a "$enable_confd" != "no"; then fi CONFD_CFLAGS="-I${enable_confd}/include -L${enable_confd}/lib" AC_SUBST([CONFD_CFLAGS]) + CONFD_LIBS="-lconfd" + AC_SUBST([CONFD_LIBS]) AC_DEFINE([HAVE_CONFD], [1], [Enable confd integration]) fi AM_CONDITIONAL([CONFD], [test "x$enable_confd" != "x"]) -- 2.39.5