This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: building GCC/newlib for MIPS targets
- From: Ian Lance Taylor <ian at airs dot com>
- To: Dhaval Oza <dhaval dot oza at corelis dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 21 Nov 2005 18:55:44 -0800
- Subject: Re: building GCC/newlib for MIPS targets
- References: <6.2.3.4.2.20051121090650.02716cf8@corelis.com> <6.2.3.4.2.20051121095511.026fc860@corelis.com> <6.2.3.4.2.20051121110723.02701538@corelis.com>
Dhaval Oza <dhaval.oza@corelis.com> writes:
> I'm trying to build GCC 3.4.2 with newlib 1.12 (using MinGW) for the
> MIPS targets. I need to build the big-endian and little-endian C++
> libraries for the MIPS-elf targets. I was successful in building the
> big-endian C++ libraries (this what the options defaulted to). I am
> unsure on how to build the C++ libraries for the little-endian
> targets. When building newlib I suppiled the -EL compile target
> option, and then used GCC to build and install the little-endian
> libaries. It seemed like the little-endian libraries were built
> however, I get linking errors when I build my test programs.
>
> I looked online for help and came across using the multilib options. I
> tried using multilib and only the big-endian libraries get built. When
> I invoke the -print multilib compiler option I get blank.
>
> 1. How to build the tools chain for various target endianess
> combinations?
>
> 2. Is it possible to build a set of libraries by running one build?
> If yes, do I need to use multilib option? If so, how to use it ?
>
> MULTILIB_OPTIONS = EL/EB
> MULTILIB_DIRNAMES = el eb
See
http://gcc.gnu.org/onlinedocs/gccint/Target-Fragment.html#Target-Fragment
Ian