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: [patch] Fix PR/41943 include search path composition is bogus for *-*-mingw32 targets


On Sun, 6 Dec 2009, Kai Tietz wrote:

> Well, the issue happens (as described in the bug-report), when you try
> to build a relocatable native toolchain for mingw. For this you need
> to specify --prefix and --with-sysroot together. By current logic this
> leads to $sysroot/$prefix/include. As prefix and sysroot are full
> paths, for this targets the concatenation of those two paths makes no
> sense, as they will result in something X:/sysroot/Y:/prefix/include.
> More details you can see in the bug
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41943 reported by Emrich.

How is $prefix getting inside $sysroot?  Paths inside sysroots should be 
native paths - for example, on a toolchain targetting GNU/Linux, paths 
such as /usr/include and /usr/lib are always used inside the sysroot, 
regardless of the prefix with which the toolchain is configured.  This 
works fine for GNU/Linux-target tools, so you need to explain how the 
search paths end up being different in your case.

-- 
Joseph S. Myers
joseph@codesourcery.com


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