This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2's cpp breaks configure scripts
On Wed, Jul 31, 2002 at 06:57:47PM -0700, Joe Buck wrote:
>
> > -I/usr/include is actually a very substantial problem. For instance,
> > when cross-compiling, it tends to make target programs pick up the
> > build system's headers. I don't think GCC should do anything to work
> > around this warning.
>
> Agreed, however the warning also comes up for -I/usr/local/include when
> prefix is /usr/local, and in that case it is more questionable whether
> there is really a problem.
Sure there is. I patch this one a couple of times every product
revision. There's no reason to assume (in a well-designed build
system) that $prefix is a location on the build machine. If you
cross-compile, it isn't.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer