This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problem crosscompiling libstdc++-2.8.1.1
- To: Ulrich dot Lauther at mchp dot siemens dot de
- Subject: Re: problem crosscompiling libstdc++-2.8.1.1
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 19 Apr 1998 22:32:49 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199804191201.OAA02740@fubini.mchp.siemens.de>you write:
> I am trying to build libstdc++-2.8.1.1 for a linux -> mingw32
> crosscompiler.
>
> The crosscompiler has already been built and lives in
> /usr/local/i686-pc-mingw32.
>
> This is what I do:
>
> cd <libstdc++-src-directory>
> mkdir obj_cross
> cd obj_cross
> CC=gcc ../configure i686-pc-mingw32 --prefix=/usr/local
> make
>
> The make runs without problems and creates the libs.
> However, the native - not the cross - gcc is used.
> As a result, the objects put into libstdc++.a are ELF-files, not coff
> as needed for the target platform.
That's because you used CC=gcc.
jeff