Subject: Re: bsd.dep.mk problem: mkdep vs. -nostdinc++
To: None <tech-toolchain@netbsd.org>
From: Thomas Klausner <wiz@netbsd.org>
List: tech-toolchain
Date: 05/27/2003 23:50:46
On Tue, May 27, 2003 at 11:49:08PM +0200, Thomas Klausner wrote:
> The second part is #ifdef CYGWIN, so let's ignore it for now.

Here a line is missing:
With the patch, the build fails in tools/compat:

> 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++
> 
> The -nostdinc++ line comes from this block:
>         @files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
>         if [ "$$files" != "  " ]; then \
>           echo ${MKDEP} -a ${MKDEPFLAGS} \
>             ${CXXFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} $$files; \
>           ${MKDEP} -a ${MKDEPFLAGS} \
>             ${CXXFLAGS:M-[ID]*} ${DESTDIR:D-nostdinc++ ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include/g++} ${CPPFLAGS} $$files; \
>         fi
> 
> Why does mkdep not recognize and handle it?
> Or shouldn't it be there at all?
> 
>  Thomas
> 
> [I backed the patch out for now.]