pam_lastlog2: link against liblastlog
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 1 Apr 2024 20:53:32 +0000 (22:53 +0200)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
While at it also drop the duplicated include path.

Fixes #2897
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 2722b40012740372daf3585b7c071fcbede13359)

Gbp-Pq: Topic upstream
Gbp-Pq: Name pam_lastlog2-link-against-liblastlog.patch

pam_lastlog2/src/Makemodule.am

index 988441676f713c09ed49301e8ffa6fddf16d1998..f9a9b6b41fb3316ebe0bd9f3cf63056726d6308c 100644 (file)
@@ -10,8 +10,9 @@ EXTRA_pam_lastlog2_la_DEPENDENCIES = \
 pam_lastlog2_la_CFLAGS = \
        $(AM_CFLAGS) \
         $(SOLIB_CFLAGS) \
-        -I$(ul_liblastlog2_incdir) \
-        -Iliblastlog2/src
+        -I$(ul_liblastlog2_incdir)
+
+pam_lastlog2_la_LIBADD = liblastlog2.la
 
 pam_lastlog2_la_LDFLAGS = $(SOLIB_LDFLAGS) -module -avoid-version -shared
 if HAVE_VSCRIPT