problem crosscompiling libstdc++-2.8.1.1
Jeffrey A Law
law@cygnus.com
Sun Apr 19 21:34:00 GMT 1998
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
More information about the Gcc
mailing list