summaryrefslogtreecommitdiffstats
path: root/usr.bin/which/Makefile
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2016-05-26 21:24:16 +0000
committermillert <millert@openbsd.org>2016-05-26 21:24:16 +0000
commit7a078411e1493f89e0a5407101f1a143d25bf83f (patch)
tree8133df0b5931dd36cd5b2ff2ea932f079ca87e33 /usr.bin/which/Makefile
parentmklocale(1) can handle C-style and shell-style comments natively, (diff)
downloadwireguard-openbsd-7a078411e1493f89e0a5407101f1a143d25bf83f.tar.xz
wireguard-openbsd-7a078411e1493f89e0a5407101f1a143d25bf83f.zip
Use "cc -E" instead of "cpp". OK deraadt@ natano@
Diffstat (limited to '')
-rw-r--r--usr.bin/which/Makefile4
1 files changed, 2 insertions, 2 deletions
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 <paths.h>\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"; \