git: sh: Work with make a little better:

Peter Avalos pavalos at
Sun Jul 15 01:12:41 PDT 2012

commit d4cbceabb29d9260ddd7f3ea00646cc8c8969ba9
Author: Peter Avalos <pavalos at>
Date:   Sun Jul 15 00:50:18 2012 -0700

    sh: Work with make a little better:
    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.
    Obtained-from:  FreeBSD 235927

Summary of changes:
 bin/sh/Makefile   |    4 ++--
 bin/sh/mkbuiltins |   18 +++++++++---------
 2 files changed, 11 insertions(+), 11 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list