This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Updates to --with-sysroot support


On Nov  6, 2002, Daniel Jacobowitz <drow@mvista.com> wrote:

> On Wed, Nov 06, 2002 at 06:49:05PM -0200, Alexandre Oliva wrote:

>> Point is it will relocate ${prefix}/include into say ../include.

> Nope.  ${prefix}/include isn't affected at all by my change.

Note I'm not talking about include in particular.  ${exec_prefix}/foo
would be relocated to ../foo.  FWIW, I think I saw this happen to
${exec_prefix}/lib while working on sysroot, so perhaps I'm just
thinking your patch changes something that it actually doesn't.

> It'll probably end up looking in /usr/include.  Ugh ugh ugh ugh ugh.  I
> didn't introduce this but I suppose we should fix it!  Suggested
> behavior?  Constrain relocation to if the sysroot starts with $prefix?

Make it $exec_prefix and we have a deal :-)

Anyway, this was my main concern with your patch, because I *thought*
we only relocated stuff starting with $(exec_prefix)/$(libsubdir) and
your patch made it more lax.  Now I see it's not the case, so we can
fix this problem in a separate patch.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]