]> granicus.if.org Git - strace/commitdiff
tests: avoid using cpp -dD
authorMichael Shigorin <mike@altlinux.org>
Wed, 17 Feb 2016 15:55:28 +0000 (18:55 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 19 Feb 2016 01:44:33 +0000 (01:44 +0000)
-dD is less portable across some peculiar preprocessors.

tests/Makefile.am (ksysent.h): Use cpp -dM instead of cpp -dD.

tests/Makefile.am

index 2e779344d91f0b8bf3c8089eb25a8e5cf4e18372..d8a9bc2aaf9a3b451b51872982452fac95a0857f 100644 (file)
@@ -383,7 +383,7 @@ EXTRA_DIST = init.sh run.sh match.awk \
 
 ksysent.h: $(srcdir)/ksysent.sed
        echo '#include <asm/unistd.h>' | \
-               $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dD - > $@.t1
+               $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) -dM - > $@.t1
        LC_COLLATE=C sed -n -f $(srcdir)/ksysent.sed < $@.t1 > $@.t2
        mv -f $@.t2 $@
        rm -f $@.t1