]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Work better with how make/bmake works:
authormarcel <marcel@FreeBSD.org>
Thu, 24 May 2012 19:48:15 +0000 (19:48 +0000)
committermarcel <marcel@FreeBSD.org>
Thu, 24 May 2012 19:48:15 +0000 (19:48 +0000)
commite7223eeffb7133dbe8bf93d42f351391f821b133
tree25f4112c4c46486072cad10f2ffd6add1d6d9fb2
parent83c05d9d51d3ea56018ec2d5e73f61de2a6f8348
Work better with how make/bmake works:
1.  Avoid a cd back into ${.CURDIR} to run mkbuiltins when we know make
    will first cd into ${.OBJDIR}. Keep the cwd to what make sets it to.
2.  Don't tell mkbuiltins where to write to (= ${.OBJDIR}), but where to
    get sources from (= ${.CURDIR}). This to compensate for point 1.

This fixes a problem with bmake's mk files that optimize ${.OBJDIR} to
expand to "." after changing cwd, not taking into account that the
target is pretty much undoing that and not getting the full path to the
object tree anymore.
bin/sh/Makefile
bin/sh/mkbuiltins