From c1b2e4fc21f9e9982b8a92658989aa3d5a1d25c8 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 9 Apr 2012 14:47:18 +0000 Subject: [PATCH] In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using 'gcc -E'. This fixes building when WITH_CLANG_IS_CC is in effect. Report by: Niclas Zeising MFC after: 1 week --- usr.bin/kdump/Makefile | 2 +- usr.bin/kdump/mkioctls | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile index afa94bb7d127..f19bd16b6595 100644 --- a/usr.bin/kdump/Makefile +++ b/usr.bin/kdump/Makefile @@ -21,7 +21,7 @@ NO_WERROR?= YES CLEANFILES= ioctl.c kdump_subr.c kdump_subr.h linux_syscalls.c ioctl.c: mkioctls - env MACHINE=${MACHINE} \ + env MACHINE=${MACHINE} CPP="${CPP}" \ sh ${.CURDIR}/mkioctls print ${DESTDIR}/usr/include > ${.TARGET} kdump_subr.h: mksubr diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls index 22ca26854dc1..eefe14cce1a0 100644 --- a/usr.bin/kdump/mkioctls +++ b/usr.bin/kdump/mkioctls @@ -38,7 +38,7 @@ case "${MACHINE}" in esac awk -v x="$ioctl_includes" 'BEGIN {print x}' | - gcc -E -I$1 -dM -DCOMPAT_43TTY - | + $CPP -I$1 -dM -DCOMPAT_43TTY - | awk -v ioctl_includes="$ioctl_includes" -v style="$style" ' BEGIN { print "/* XXX obnoxious prerequisites. */"