Subject: Re: problem: mkdep vs. -nostdinc++
To: Todd Vierling <>
From: Thomas Klausner <>
List: tech-toolchain
Date: 05/28/2003 14:48:55
On Tue, May 27, 2003 at 09:18:00PM -0400, Todd Vierling wrote:
> I wrote:
> : updating cache config.cache
> : configure: creating ./config.status
> : config.status: creating
> : config.status: creating config.h
> : /home/wiz/cvs/src/tools/obj.i386/tools.NetBSD-1.6L-i386/bin/nbhost-mkdep -a  -I. -I./include -I/home/wiz/cvs/src/tools/compat -DHA
> : /home/wiz/cvs/src/tools/obj.i386/tools.NetBSD-1.6L-i386/bin/nbhost-mkdep -a  -I. -I./include -I/home/wiz/cvs/src/tools/compat -DHA
> : /home/wiz/cvs/src/tools/obj.i386/tools.NetBSD-1.6L-i386/bin/nbhost-mkdep: unknown option: -nostdinc++
> Huh?  Why is this running autoconf's configure *and* running NetBSD's
> ${MKDEP} (aka "nbhost-mkdep")!?  In src/tools, you do a "configure"-based
> compile and a "make" on the generated tree, OR a BSD-Makefile compile, but
> not both on the same program.

No clue.
It seems to be intended, since usr.bin/Makefile has host-mkdep as first SUBDIR
and a .WAIT before compat.

> That much aside, nbhost-mkdep should never be passed -nostdinc++.
> nbhost-mkdep is used specifically by BSD-Makefile based stuff in src/tools,
> and I believe src/tools/ has the definitions for overriding how
> DESTDIR and MKDEP work for dependencies.

There's no src/tools/
The -nostdinc++ comes from share/mk/, where you added it in 1.34,
so I hoped you could clarify :)