mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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 <zeising@daemonic.se> MFC after: 1 week
This commit is contained in:
parent
5844994b1e
commit
c1b2e4fc21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234058
|
@ -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
|
||||
|
|
|
@ -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. */"
|
||||
|
|
Loading…
Reference in a new issue