CPATH, LIBRARY_PATH, and cross-compilers
Joel Sherrill
joel.sherrill@oarcorp.com
Tue Feb 12 19:02:00 GMT 2013
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.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Gcc
mailing list