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: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix


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.

-- 
Daniel Jacobowitz
CodeSourcery


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