How to get the multi-lib options of a RTEMS installation

Ralf Corsepius ralf.corsepius at rtems.org
Fri Feb 10 08:24:12 UTC 2012


On 02/10/2012 08:53 AM, Sebastian Huber wrote:
> On 02/10/2012 08:37 AM, Sébastien Bourdeauducq wrote:
>> On 02/10/2012 04:05 AM, Ralf Corsepius wrote:
>>> On 02/09/2012 05:44 PM, Sebastian Huber wrote:
>>>> Is there a why to get the GCC options which were used to generate these
>>>> multi-libs?
>>> No. That's not how multilibs work.
>>>
>>> The multilib directories are gcc internal default library search-paths,
>>> GCC switches to when it finds certain combinations of flags in the
>>> CFLAGS/LDFLAGS being passed to it.
>>>
>>> I.e. there is a "multilib options" -> "multilibdir" transformation,
>>> but there is no reverse transformation.
>>
>> Seems there is:
>>
>> $ lm32-rtems4.11-gcc -print-multi-lib
>
> Thanks, this is exactly the option I was looking for.
>
This is the flags->dirs mapping I was talking about.

The inverse mapping is invalid.

Ralf



More information about the users mailing list