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_debug/Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/pam_debug') diff --git a/modules/pam_debug/Makefile.am b/modules/pam_debug/Makefile.am index 45a33ac2..5b3bffcb 100644 --- a/modules/pam_debug/Makefile.am +++ b/modules/pam_debug/Makefile.am @@ -21,8 +21,7 @@ else secureconfdir = $(SCONFIGDIR) endif -AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ - $(WARN_CFLAGS) +AM_CFLAGS = -I$(top_srcdir)/libpam/include $(WARN_CFLAGS) AM_LDFLAGS = -no-undefined -avoid-version -module if HAVE_VERSIONING AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map -- cgit v1.2.3