This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Need information about multilib option of Newlib
- To: joel dot brenner at tchip dot com
- Subject: Re: Need information about multilib option of Newlib
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Tue, 06 Feb 2001 11:58:53 -0500
- CC: newlib at sources dot redhat dot com
- Organization: Red Hat Inc.
- References: <3A7932BA.F87F87E0@tchip.com>
Joel Brenner wrote:
>
> Hi I've just installed Newlib 1.9.0. I'need to install Newlib in
> different version and with different compiler options (ARM-THUMB
> target). Does multilib option can generate a tree of different version
> of the same libs? How it works? Where can I find more informations abaut
> Newlib end multilib?
>
> tanks joel brenner
Joel,
Multilibs are built automatically for you. The compiler has a special
option: --print-multi-lib which gives a list of directory names and options
to use to build multilibs (if applicable for the platform). It also specifies
which options can be permutated together. Newlib uses the output of --print-multi-lib
when building to get the list of options it should use/permutate and the assigned names
to use for the subdirectories to store the multilibs.
When you compile/link and specify one or more of the multilib options (e.g. -mlittle-endian),
the compiler knows the correct subdirectory location of the installed library to use for your
application.
You can find information on how the multilib options are specified in gcc by looking at the
gcc info files.
-- Jeff J.