With these changes applied, and by specifying MAKESRCDIRPREFIX/MAKEOBJDIRPREFIX,
I can build tree without creating obj symlinks under source.
If src directory is /a/src, and obj is /b/obj, use
then .OBJDIR under /a/src/bin/ls becomes /b/obj/bin/ls (if object directories
are already generated by "make obj").
I'm not 100% sure about the change in bsd.obj.mk (i.e. interaction with
Theo de Raadt wrote:
> I've been here for a while. My experiences:
> Lots of variations of build environment -> lots of failure
> conditions happen -> many people wasting their time.
> Please supply a good justification why that is good.
Actually, it's kind of interesting. Taking the obj/ links out of the src/ tree
is a natural extension of taking the objects themselves out.
Two users could build from the same src tree into different obj directories.
Right now that doesn't work because there can only be one symlink.
src and obj on nfs mostly works, but only if one is careful about the mount
As a third or fifth or whatever configuration, it may be too much variety, but
it sounds like it could replace the current obj system. Same amount of