]> granicus.if.org Git - linux-pam/commitdiff
pam_rootok: fix linking in --enable-audit mode
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jul 2013 22:18:02 +0000 (22:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jul 2013 22:25:27 +0000 (22:25 +0000)
pam_rootok.c explicitly uses functions from libaudit, so the module has
to be linked with the library.

* modules/pam_rootok/Makefile.am (pam_rootok_la_LIBADD): Add @LIBAUDIT@.

modules/pam_rootok/Makefile.am

index d132367ab5a039bd359a18bc240b4c2b7875e81c..f8f292ebab4972454722f5af47728ae0673d0d0d 100644 (file)
@@ -25,7 +25,7 @@ if HAVE_VERSIONING
 endif
 
 securelib_LTLIBRARIES = pam_rootok.la
-pam_rootok_la_LIBADD = $(top_builddir)/libpam/libpam.la @LIBSELINUX@
+pam_rootok_la_LIBADD = $(top_builddir)/libpam/libpam.la @LIBSELINUX@ @LIBAUDIT@
 
 if ENABLE_REGENERATE_MAN
 noinst_DATA = README