Subject: Re: New possibility to move "obj" logic *out* of make(1)
To: Todd Vierling <>
From: Simon J. Gerraty <>
List: tech-toolchain
Date: 10/31/2001 17:42:09
>: You'd still need to move the code - since currentl objdir handling is
>: done before the command line is parsed.

>...which is easy enough to do.  I've become quite familiar with the innards
>of {main,parse}.c in the past few days.  :)

Oh agreed, though in that case you've potentially read and actioned a bunch
of command line var settings which make impact the end result.

>: Besides, command line options suck for something you want every time.

>I can just as easily leave the code inside make(1) as-is and override it in
><>; the downside, of course, is that the default "find my objdir"
>logic will get executed twice, causing more inode lookups and so forth.
>And it won't fix the referenced PR.

>To try this another way, how about a command line option that *turns off*
>the built-in objdir logic?  This could be used to address the PR.

That sounds a safer change.

>In any case, I'll fiddle up an implementation of the <> portion of
>this proposal and post it to tech-toolchain for review as soon as it's done.
>This will essentially duplicate some of the default .OBJDIR searching, but
>with the mentioned benefits of more flexibility and less ugliness such as
>that caused by the current implementation of BSDSRCDIR/BSDOBJDIR rewriting.

Cool, thanks