SUID_CFLAGS are not meant to override the makefile-wide AM_CFLAGS.
(We do not use AM_CFLAGS currently, but we will.)
Signed-off-by: Stepan Kasal <skasal@redhat.com>
newgrp_LDADD =
vipw_LDADD =
-chfn_CFLAGS = $(SUID_CFLAGS)
-chsh_CFLAGS = $(SUID_CFLAGS)
-newgrp_CFLAGS = $(SUID_CFLAGS)
+chfn_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
+chsh_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
+newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
if NEED_LIBCRYPT
chfn_LDADD += -lcrypt
usrbinexec_PROGRAMS += write
man_MANS += write.1
-write_CFLAGS = $(SUID_CFLAGS)
+write_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
if USE_TTY_GROUP
install-exec-hook::
$(MNTHDRS)
mount_LDADD = $(top_srcdir)/lib/libenv.a $(top_srcdir)/lib/libsetproctitle.a
-mount_CFLAGS = $(SUID_CFLAGS)
+mount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
umount_SOURCES = umount.c fstab.c sundries.c xmalloc.c realpath.c mount_mntent.c \
getusername.c get_label_uuid.c mount_by_label.c mount_blkid.c \
$(MNTHDRS)
umount_LDADD = $(top_srcdir)/lib/libenv.a
-umount_CFLAGS = $(SUID_CFLAGS)
+umount_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
swapon_SOURCES = swapon.c xmalloc.c \
get_label_uuid.c mount_by_label.c mount_blkid.c \