On 2/12/2013 12:48 PM, Ludovic Courtès wrote:
Hi,

GCC honors CPATH, LIBRARY_PATH, & co. regardless of whether it’s built
as a cross-compiler.

Consequently, when cross-compiling a package that contains both support
tools to be compiled natively and the main code to be cross-compiled,
these variables are useless because they don’t allow host and build
headers and libraries to be distinguished.

To fix that, I’d build the cross-compiler with something like:

This is a long standing issue with gcc. Whether your solution is
OK with the other developers, I don't know. It is a step in the
right direction.

But it still doesn't address the situation where you have multiple
cross compilers in your PATH all for different targets. It addresses
the most common use case though.

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985

Reply via email to