Date: Sat, 15 Mar 1997 22:49:15 -0700 From: Warner Losh <imp@village.org> To: Chuck Robey <chuckr@glue.umd.edu> Cc: hackers@freebsd.org Subject: Re: Make question Message-ID: <199703160549.WAA12356@rover.village.org> In-Reply-To: Your message of "Sat, 15 Mar 1997 23:25:06 EST." <Pine.OSF.3.95q.970315232211.16495A-100000@modem.eng.umd.edu> References: <Pine.OSF.3.95q.970315232211.16495A-100000@modem.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.OSF.3.95q.970315232211.16495A-100000@modem.eng.umd.edu> Chuck Robey writes: : It does this if there isn't a corresponding obj dir left over from your : last make world. I usually, when messing around in single dirs, do a : 'make obj' just to be sure that there's a corresponding obj dir there (and : I don't mess up my source dirs, which I like to keep clean). Ummm, there *IS* one left over from my make world. If I cd to /usr/src/usr.bin and do a make, then it uses /usr/obj (specifically /usr/obj/jaz/FreeBSD/current/src/usr.bin/file). If I cd to /usr/src/usr.bin/file it builds in /usr/src/usr.bin/file rather than /usr/obj/jaz/FreeBSD/current/src/usr.bin/file.[*] : I think all you have to do is a make obj, then make real sure you go out : of your way to kill the invisible .depend file in your sources, when : you're deleting all the wayward obj files. Hmmm, that doesn't seem to work. I think the problem is that /usr/src is a symlink to /jaz/FreeBSD/current/src and when I recurse it uses the real path, while when I don't it uses $PWD. When I cd to /jaz/FreeBSD/current/src/usr.bin/file rather than /usr/src/usr.bin/file, then it picks up the right thing :-(. Sounds like a bug to me. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703160549.WAA12356>