Subject: Re: bsd.dep.mk problem: mkdep vs. -nostdinc++
To: Todd Vierling <tv@pobox.com>
From: Thomas Klausner <wiz@netbsd.org>
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 defs.mk
> : 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
> : VE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -D__DBINTERFACE_PRIVATE [lots of filenames]
> : /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
> : VE_CONFIG_H  -D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE -D__DBINTERFACE_PRIVATE
> : /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/Makefile.inc has the definitions for overriding how
> DESTDIR and MKDEP work for dependencies.

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