Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 95 11:50:14 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        wollman@halloran-eldar.lcs.mit.edu (Garrett Wollman)
Cc:        current@FreeBSD.org
Subject:   Re: Includes
Message-ID:  <9503231850.AA19279@cs.weber.edu>
In-Reply-To: <9503231750.AA03285@halloran-eldar.lcs.mit.edu> from "Garrett Wollman" at Mar 23, 95 12:50:35 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > % echo "No thank you."
> > No thank you.
> 
> wollman@halloran-eldar(245)$ echo "Get a real shell."
> Get a real shell.

Builds in the source tree should use includes from the source tree
and not includes from the system.

This means that the source tree either should create it's own include
directory during a build, or that sources in the source tree should
get include files from their source locations instead of their target
locations post-install.

This will incidently "magically" fix the include dependency problems
and allow you to do a 'make world' with the assurance that the
changes you made to an include file will cause everything that
includes that file to be rebuilt, but that *nothing* which does not
include the file will end up rebuilt at the same time.

"install"ing includes in general, but especially to /usr/include, is
a bogus part of the build process.


Kludging up symlinks in the include directory so that something like

	wollman@halloran-eldar(245)$ cd /usr/include/sys/..

causes you to end up in /usr/src/sys instead of /usr/include
is just plain bogus, besides actively interfering with the ability
to cross compile and requiring additional kludges to install or .h:.h
dependency rules to make it work only badly.

Dependence on a shell with rememebred paths that then hacks the paths
potentially using different rules than vn_lookup (unless changes are
made simultaneously to both code sets) is also bogus.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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