From 12ea4a66835e2479aa4cfd9302b00bc4a006d085 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 26 May 2016 21:24:17 +0000 Subject: Use "cc -E" instead of "cpp". OK deraadt@ natano@ --- usr.bin/which/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/which/Makefile b/usr.bin/which/Makefile index 26b1262e66b..c0359e89c59 100644 --- a/usr.bin/which/Makefile +++ b/usr.bin/which/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.8 2013/04/15 16:34:19 guenther Exp $ +# $OpenBSD: Makefile,v 1.9 2016/05/26 21:24:16 millert Exp $ PROG= which MAN= which.1 whereis.1 @@ -7,7 +7,7 @@ LINKS= ${BINDIR}/which ${BINDIR}/whereis check_path_in_man: @echo "Checking path expansion in whereis.1"; \ stdpath=`printf '#include \n_PATH_STDPATH\n' | \ - ${CPP} ${CPPFLAGS} - | \ + ${CC} -E -P ${CPPFLAGS} - | \ sed -n 's/^[ ]*"\(.*\)".*/.D1 \1/p'` ; \ fgrep -xq "$$stdpath" ${.CURDIR}/whereis.1 && { touch $@; exit 0; }; \ echo "Update the expansion of _PATH_STDPATH in ${.CURDIR}/whereis.1"; \ -- cgit v1.2.3