From 70773c1a25dd5a2ae6611fddd7c4b1250ee429eb Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sun, 21 Jan 2024 23:05:36 +0100 Subject: modules: add pamc headers to the search path only when needed The pam client library libpamc is only needed if libpam_misc is in use. But libpam_misc is only used by an SELinux helper binary. Remove the libpamc includes from the search path in all other cases. Signed-off-by: Tobias Stoeckmann --- modules/pam_timestamp/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/pam_timestamp') diff --git a/modules/pam_timestamp/Makefile.am b/modules/pam_timestamp/Makefile.am index ca869a9c..55afdba5 100644 --- a/modules/pam_timestamp/Makefile.am +++ b/modules/pam_timestamp/Makefile.am @@ -24,8 +24,7 @@ endif noinst_HEADERS = hmacsha1.h sha1.h hmac_openssl_wrapper.h -AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ - $(LOGIND_CFLAGS) $(WARN_CFLAGS) +AM_CFLAGS = -I$(top_srcdir)/libpam/include $(LOGIND_CFLAGS) $(WARN_CFLAGS) pam_timestamp_la_LDFLAGS = -no-undefined -avoid-version -module $(AM_LDFLAGS) $(CRYPTO_LIBS) pam_timestamp_la_LIBADD = $(top_builddir)/libpam/libpam.la $(SYSTEMD_LIBS) -- cgit v1.2.3