]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: use $(SQLITE3_LIBS) instead of -lsqlite3
authorKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 13:11:25 +0000 (15:11 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Apr 2026 09:16:23 +0000 (11:16 +0200)
Use the pkg-config variable set by PKG_CHECK_MODULES in configure.ac
rather than hardcoding -lsqlite3.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/Makemodule.am

index b50ebfa954fc0a5bd5d34c6d2e2c1fc18335a4a3..23497651297531550d9ff70276fc9f265ea3b69f 100644 (file)
@@ -94,7 +94,7 @@ usrbin_exec_PROGRAMS += lastlog2
 MANPAGES += misc-utils/lastlog2.8
 dist_noinst_DATA += misc-utils/lastlog2.8.adoc
 lastlog2_SOURCES = misc-utils/lastlog2.c lib/strutils.c
-lastlog2_LDADD = $(LDADD) liblastlog2.la -lsqlite3
+lastlog2_LDADD = $(LDADD) liblastlog2.la $(SQLITE3_LIBS)
 lastlog2_CFLAGS = $(AM_CFLAGS) -I$(ul_liblastlog2_incdir)
 systemdsystemunit_DATA += \
        misc-utils/lastlog2-import.service