On Mon, Jan 31, 2011 at 08:42:59PM +0100, Matthias Drochner wrote: > > jo...@britannica.bec.de said: > > $ ~/work/NetBSD/obj/clang-base/tools/bin/nbmake-amd64 -V .OBJDIR > > /home/joerg/work/NetBSD/obj/clang-base/amd64/lib/csu > > This shows that you are not using an .OBJDIR, in the sense that it is > different from .CURDIR. See the make(1) manpage. > > There are various rules which use this in mk/bsd.obj.mk. I'm > setting BUILDID and BSDOBJDIR in my /etc/mk.conf.
I can comment out the MAKEOBJDIR assignment in nbmake-amd64 and it still works fine. BSDOBJDIR doesn't seem to do anything. BUILDID breaks this. I have no idea why those variables even exist, the code in bsd.own.mk is messy at best and I don't think it justifies the changes to the Makefiles. As such, please either kill BUILDID or find a proper fix and backout this change. Joerg