Subject: Re: MKDEP definition
To: Todd Vierling <tv@wasabisystems.com>
From: Chris Jepeway <jepeway@blasted-heath.com>
List: current-users
Date: 09/24/2001 20:07:28
> On Sun, 23 Sep 2001, Peter Seebach wrote:
>
> : MKDEP="CC=... .../mkdep"
> : doesn't work for kernel builds, which try to do
> : sh .../genassym.sh ${MKDEP}
> : because "CC=..." doesn't work in that context.
>
> Thanks for the report; I'll wrap mkdep with a platform-dependent wrapper
> script.
How 'bout something like this patch?
Chris <jepeway@blasted-heath.com>.
Index: usr.bin/mkdep/mkdep.c
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/mkdep/mkdep.c,v
retrieving revision 1.8
diff -u -r1.8 mkdep.c
--- mkdep.c 2001/03/22 02:41:02 1.8
+++ mkdep.c 2001/09/25 00:02:54
@@ -58,7 +58,9 @@
#include <string.h>
#include <unistd.h>
+#ifndef DEFAULT_CC
#define DEFAULT_CC "cc"
+#endif
#define DEFAULT_PATH _PATH_DEFPATH
#define DEFAULT_FILENAME ".depend"
cvs server: Diffing tools/mkdep
Index: tools/mkdep/Makefile
===================================================================
RCS file: /cvsroot/basesrc/tools/mkdep/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile 2001/08/14 11:02:02 1.1
+++ Makefile 2001/09/25 00:02:54
@@ -2,6 +2,8 @@
HOST_SRCDIR= usr.bin/mkdep
+HOST_CPPFLAGS+= '-DDEFAULT_CC="$(TOOLDIR)/bin/$(MACHINE_GNU_PLATFORM)-gcc"'
+
.include "${.CURDIR}/../Makefile.host"
${TIMESTAMP}: ${SRCS}