summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--getopt/Makefile.am2
-rw-r--r--login-utils/Makefile.am2
-rw-r--r--mount/Makefile.am4
3 files changed, 4 insertions, 4 deletions
diff --git a/getopt/Makefile.am b/getopt/Makefile.am
index 319e8bfa3..daad3e47b 100644
--- a/getopt/Makefile.am
+++ b/getopt/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/config/include-Makefile.am
usrbinexec_PROGRAMS = getopt
-getopt_CFLAGS = -DLIBCGETOPT=1
+getopt_CPPFLAGS = -DLIBCGETOPT=1 $(AM_CPPFLAGS)
man_MANS = getopt.1
diff --git a/login-utils/Makefile.am b/login-utils/Makefile.am
index efdba27c0..639db58c6 100644
--- a/login-utils/Makefile.am
+++ b/login-utils/Makefile.am
@@ -132,5 +132,5 @@ endif
noinst_PROGRAMS = checktty_test
checktty_test_SOURCES = checktty.c login.h
-checktty_test_CFLAGS = -DMAIN_TEST_CHECKTTY
+checktty_test_CPPFLAGS = -DMAIN_TEST_CHECKTTY $(AM_CPPFLAGS)
diff --git a/mount/Makefile.am b/mount/Makefile.am
index 90b35ed00..18a5c60ee 100644
--- a/mount/Makefile.am
+++ b/mount/Makefile.am
@@ -29,7 +29,7 @@ swapon_SOURCES = swapon.c xmalloc.c \
swap_constants.h realpath.c
losetup_SOURCES = lomount.c loop.h lomount.h
-losetup_CFLAGS = -DMAIN
+losetup_CPPFLAGS = -DMAIN $(AM_CPPFLAGS)
mount_LDADD =
umount_LDADD =
@@ -52,7 +52,7 @@ endif
noinst_PROGRAMS = mtab_lock_test
mtab_lock_test_SOURCES = fstab.c sundries.c xmalloc.c $(MNTHDRS)
-mtab_lock_test_CFLAGS = -DMAIN_TEST_MTABLOCK
+mtab_lock_test_CPPFLAGS = -DMAIN_TEST_MTABLOCK $(AM_CPPFLAGS)
swapon.c: swapargs.h