Renato Botelho <garga_at_freebsd.org> wrote: > > Interesting; what .OBJDIR do you end up with for say bin/cat ? > > > In this case it fails the first time pointing to expected .OBJDIR, then second time I run it builds > > /u/s/b/cat # ❯❯❯ make -DWITH_AUTO_OBJ > [Creating objdir obj...] > make: "/usr/src/share/mk/auto.obj.mk" line 61: could not use obj: .OBJDIR=/usr/obj/usr/src/bin/cat The creating line is the clue, it is just obj rather than say /usr/obj/usr/src/bin/cat Do you have MAKEOBJDIRPREFIX set in env? Or are you relying on bsd.obj.mk to set CANONICALOBJDIR:=/usr/obj${.CURDIR} ? Since we need to do auto.obj.mk *very* early (so .PATH is correct), it is probably relying on MAKEOBJDIRPREFIX or MAKEOBJDIR (I always have MAKEOBJDIR set) since bsd.obj.mk will not be included yet. If that's all the case though I wouldn't expect it to work any better on subsequent runs.Received on Sat Nov 12 2016 - 00:43:04 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC