This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix
On Mon, Dec 18, 2006 at 04:11:50PM -0500, Daniel Jacobowitz wrote:
> On Mon, Dec 18, 2006 at 01:09:49PM -0800, Brian Dessent wrote:
> > > Some things are searched for in
> > > a relocated location, others in an unrelocated location, depending on
> > > the platform.
> >
> > But this seems to contradict the above, unless you mean here that the
> > driver is smart enough to know what moves with the compiler and what
> > does not.
>
> Exactly. /usr/include on a Unix system does not move with the
> compiler. It's always /usr/include whether the compiler is built for
> /usr or not. $prefix/$target_alias/include moves with the compiler.
> A sysroot may or may not (the configure script decides at build time;
> only configure scripts inside $exec_prefix move with the compiler).
>
> Some handholding may be required if you want /mingw/include to move
> with the compiler, which it doesn't on other systems.
>
> The code that handles the relocation is not terribly complicated.
Hi Daniel,
Just so I understand correctly. In general, does DESTDIR only setup a
staging area, and then when the code is untar'd somewhere else, it
should be untared to wherever the --prefix dir was?
With that in mind, you are suggesting that gcc does some extra magic so
that you can run it from anywhere, --prefix dir or from DESTDIR install?
I'd like to know for the future if in general all programs should be
able to run from DESTDIR, or if gcc took extra steps to make this work.
Thanks,
Bob Rossi