Subject: Re: bsd.dep.mk problem: mkdep vs. -nostdinc++
To: Thomas Klausner <wiz@netbsd.org>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 05/27/2003 18:21:28
On Tue, 27 May 2003, Thomas Klausner wrote:

: The second part is #ifdef CYGWIN, so let's ignore it for now.
: 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.

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.

-- 
-- Todd Vierling <tv@pobox.com>