summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-04-26 02:11:50 +0000
committerDmitry V. Levin <ldv@altlinux.org>2020-04-26 11:12:59 +0000
commit3edc51e9e1151a54172ec0a7c9660a7d7b1a6b49 (patch)
tree80efc60d8ef61c1f4034fe831c2146bc6e597fc9 /modules
parent6e4a7c10ec41d009d8e7afaeb079a18ac3ba1a68 (diff)
build: cleanup: do not add -DWITH_SELINUX to CFLAGS
As WITH_SELINUX is already AC_DEFINE'd in configure.ac, there is no point in adding -DWITH_SELINUX to CFLAGS. * libpam/Makefile.am [HAVE_LIBSELINUX] (AM_CFLAGS): Do not add -DWITH_SELINUX. * modules/pam_rootok/Makefile.am: Likewise. * modules/pam_unix/Makefile.am: Likewise.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_rootok/Makefile.am3
-rw-r--r--modules/pam_unix/Makefile.am4
2 files changed, 0 insertions, 7 deletions
diff --git a/modules/pam_rootok/Makefile.am b/modules/pam_rootok/Makefile.am
index 06e755c5..2abf239b 100644
--- a/modules/pam_rootok/Makefile.am
+++ b/modules/pam_rootok/Makefile.am
@@ -19,9 +19,6 @@ secureconfdir = $(SCONFIGDIR)
AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
$(WARN_CFLAGS)
-if HAVE_LIBSELINUX
-AM_CFLAGS += -DWITH_SELINUX
-endif
AM_LDFLAGS = -no-undefined -avoid-version -module
if HAVE_VERSIONING
AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map
diff --git a/modules/pam_unix/Makefile.am b/modules/pam_unix/Makefile.am
index 55aac31a..2a9a76e7 100644
--- a/modules/pam_unix/Makefile.am
+++ b/modules/pam_unix/Makefile.am
@@ -23,10 +23,6 @@ AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \
-DUPDATE_HELPER=\"$(sbindir)/unix_update\" \
@TIRPC_CFLAGS@ @NSL_CFLAGS@ $(WARN_CFLAGS)
-if HAVE_LIBSELINUX
- AM_CFLAGS += -D"WITH_SELINUX"
-endif
-
pam_unix_la_LDFLAGS = -no-undefined -avoid-version -module
if HAVE_VERSIONING
pam_unix_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map