Date: Wed, 04 Jul 2001 23:25:03 -0600 From: Warner Losh <imp@harmony.village.org> To: Julian Elischer <julian@elischer.org> Cc: current@FreeBSD.ORG Subject: Re: kernel getting files from out of kernel tree. Message-ID: <200107050525.f655P3J44858@harmony.village.org> In-Reply-To: Your message of "Wed, 04 Jul 2001 22:11:35 PDT." <3B43F707.768085D5@elischer.org> References: <3B43F707.768085D5@elischer.org> <3B43EE2E.5BB03624@elischer.org> <3B43E764.3333C898@elischer.org> <200107050428.f654S0J44503@harmony.village.org> <200107050502.f6552VJ44682@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <3B43F707.768085D5@elischer.org> Julian Elischer writes: : Warner Losh wrote: : > : > In message <3B43EE2E.5BB03624@elischer.org> Julian Elischer writes: : > : that doesn't make it right.. : > : If you do the make depend with the /usr/src not present (excepg for sys) : > : it doesn't grab the others. That raises the possibility that a compile may : > : be different depending on whether or not the kernel tree was in a : > : populated /usr/src, or just isolated. : > : (e.g. whether the system install was of type "Kernel-developer" or "developer") : > : > I'm saying that the kernel depends on ../../../include or /usr/include : > and that dependency is codified in the Makefiles. It would take a lot : > of effort to remove that dependency. : > : > You must have includes installed. : : no, the kernel compiles fine without /usr/src/includes installed : but if it IS installed, it finds them first. No it does not. Try extreme version skew, like building -current on a 3.2-STABLE system without /usr/src/includes. Even using current build toolks, it dies a horrible death (at least it did last time I tried it). It happens to work with /usr/includes. If you look at the makefile, you'll see this is explicit there: # This hack is to allow kernel compiles to succeed on machines w/out srcdist .if exists($S/../include) INCLUDES+= -I$S/../include .else INCLUDES+= -I/usr/include .endif Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107050525.f655P3J44858>