Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/kdump '${CC:-cc} -E' rather than 'cpp': want to use ...



details:   https://anonhg.NetBSD.org/src/rev/6d2be891601e
branches:  trunk
changeset: 495375:6d2be891601e
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Jul 27 01:36:56 2000 +0000

description:
'${CC:-cc} -E' rather than 'cpp': want to use a cross-compiler if
appropriate, but worse: 'cpp' (real-UNIX or stock gnu) takes args
[infile [outfile]].  I.e., the second arg (ioctl_compat.h) would
end up being nuked by this script if using a vendor or stock gnu cpp!
Our /usr/bin/cpp works Differently.

diffstat:

 usr.bin/kdump/mkioctls |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 82bbf165f44f -r 6d2be891601e usr.bin/kdump/mkioctls
--- a/usr.bin/kdump/mkioctls    Thu Jul 27 00:35:02 2000 +0000
+++ b/usr.bin/kdump/mkioctls    Thu Jul 27 01:36:56 2000 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: mkioctls,v 1.10 1997/10/19 03:38:30 lukem Exp $
+#      $NetBSD: mkioctls,v 1.11 2000/07/27 01:36:56 cgd Exp $
 #
 # Copyright (c) 1994
 #      The Regents of the University of California.  All rights reserved.
@@ -34,7 +34,7 @@
 #
 #      @(#)mkioctls    8.2 (Berkeley) 4/28/95
 #
-cpp -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@"} | awk '
+${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@"} | awk '
 BEGIN {
        print "#include <sys/param.h>"
        print "#include <sys/socket.h>"



Home | Main Index | Thread Index | Old Index