Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 1995 08:30:28 -0600
From:      nate@sneezy.sri.com (Nate Williams)
To:        Mike Pritchard <pritc003@maroon.tc.umn.edu>
Cc:        rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes), nate@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-sys@freefall.cdrom.com
Subject:   Re: cvs commit: src/sys/i386/conf Makefile.i386
Message-ID:  <199504041430.IAA05860@trout.sri.MT.net>
In-Reply-To: <199504040719.CAA07819@mpp.com>
References:  <199504030240.TAA03137@gndrsh.aac.dev.com> <199504040719.CAA07819@mpp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > >   Modified:    sys/i386/conf Makefile.i386
> > >   Log:
> > >   Added -I/usrinclude to the tail end of the INCLUDES line.  This hack
> > >   will cause kernel compiles to work even if the src/includes directory
> > >   doesn't exist but still do the 'Right Thing' and pull files from the
> > >   source tree if it does exist.
> 
> My feelings are that you should be able to build anything in /usr/src
> without /usr/include even being present on the machine you are running
> the build on.

I've re-read what I wrote a couple times, and it must not be obvious
even though I think it makes sense to me.  I'm getting people arguing
with the change from both ends.

The previous behavior (before my change) caused the kernel to bring in
include files from the /usr/src tree.  This is what you want.

However, if you *don't* have /usr/src/include installed an you've only
installed the bindist then the change I made allows the kernel to
compile.  This is normal behavior for most folks who want to build a
custom kernel.  They don't want to install the entire src dist. just to
build a kernel.

But, *IF* both the src dist and /usr/include directories exist, the
include files are pulled out of /usr/src/include if they exist and
/usr/include next.  (Which should never happen since /usr/src/include
should always contain all of the necessary include files which aren't in
the /usr/src/sys tree)


Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504041430.IAA05860>