]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: Fix setpriv build with econf
authorTobias Stoeckmann <tobias@stoeckmann.org>
Thu, 9 Apr 2026 20:34:39 +0000 (22:34 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 15 Apr 2026 11:34:06 +0000 (13:34 +0200)
Link setpriv with libeconf if used due to its usage in lib/logindefs.c.

Closes: #4217
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
sys-utils/Makemodule.am

index e6c3f85ac4d9a6852ae9f679e4b6154251c977f8..ce91468e641b8798b628229f44426a9b0e3bb936 100644 (file)
@@ -599,4 +599,7 @@ if HAVE_LINUX_LANDLOCK_H
 setpriv_SOURCES += sys-utils/setpriv-landlock.c
 endif
 setpriv_LDADD = $(LDADD) -lcap-ng libcommon.la
+if HAVE_ECONF
+setpriv_LDADD += $(ECONF_LIBS)
 endif
+endif # BUILD_SETPRIV