Commit 9ee3b717a5 for frr
commit 9ee3b717a5e5177c37af111a8e7c3be8138dd910
Author: Vincent Jardin <vjardin@free.fr>
Date: Sun Nov 22 19:52:25 2026 +0100
build: link with LIBYANG_LIBS instead of a bare -lyang
Add LIBYANG_LIBS, which includes the -L flags from pkg-config, to LIBS
instead of a bare -lyang.
Signed-off-by: Vincent Jardin <vjardin@free.fr>
diff --git a/configure.ac b/configure.ac
index 7b8b99c8ac..5ec86946b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2069,7 +2069,7 @@ AC_CHECK_MEMBER([struct lyd_node.priv], [], [
])
], [[#include <libyang/libyang.h>]])
-AC_CHECK_LIB([yang],[lyd_find_xpath3],[],[AC_MSG_ERROR([m4_normalize([
+AC_CHECK_LIB([yang],[lyd_find_xpath3],[LIBS="$LIBYANG_LIBS $LIBS"],[AC_MSG_ERROR([m4_normalize([
libyang missing lyd_find_xpath3])])])
dnl -- don't add lyd_new_list3 to this list unless bug is fixed upstream
dnl -- https://github.com/CESNET/libyang/issues/2149