summaryrefslogtreecommitdiff
path: root/usr.bin/mkdep/mkdep.gcc.sh
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-25 14:27:46 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-25 14:27:46 +0000
commit91f9bb6d87d203ce7eede6cd49aa8a9d96e40281 (patch)
tree2f10edfb93e75149f504fb5316f8a7269e730c78 /usr.bin/mkdep/mkdep.gcc.sh
parent3ced980c4ef0676e3badfcb2f35d7253176d2a66 (diff)
Use ${CC:-cc} instead of cc
Diffstat (limited to 'usr.bin/mkdep/mkdep.gcc.sh')
-rw-r--r--usr.bin/mkdep/mkdep.gcc.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mkdep/mkdep.gcc.sh b/usr.bin/mkdep/mkdep.gcc.sh
index d852cd0d6fc..eabafc98600 100644
--- a/usr.bin/mkdep/mkdep.gcc.sh
+++ b/usr.bin/mkdep/mkdep.gcc.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: mkdep.gcc.sh,v 1.5 1997/01/25 08:47:56 deraadt Exp $
+# $OpenBSD: mkdep.gcc.sh,v 1.6 1997/01/25 14:27:44 niklas Exp $
# $NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $
#
# Copyright (c) 1991, 1993
@@ -81,9 +81,9 @@ umask $um
trap 'rm -rf $DTMP ; exit 1' 1 2 3 13 15
if [ x$pflag = x ]; then
- cc -M "$@" | sed -e 's; \./; ;g' > $TMP
+ ${CC:-cc} -M "$@" | sed -e 's; \./; ;g' > $TMP
else
- cc -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
+ ${CC:-cc} -M "$@" | sed -e 's;\.o :; :;' -e 's; \./; ;g' > $TMP
fi
if [ $? != 0 ]; then