problem crosscompiling libstdc++-2.8.1.1

Ulrich Lauther ulrich.lauther@mchp.siemens.de
Mon Apr 20 00:56: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
> 
Thanks a lot!
With 
../configure i686-pc-mingw32 --prefix=/usr/local --build=i686-pc-linux-gnulibc1 
it works!

However I hat to change the declaration in libiberty/strerror.c 
from
	static const char **sys_errlist;
to
	char **sys_errlist;

to avoid a type confict with i686-pc-mingw32/include/errno.h      

Maybe  NEED_sys_errlist should not be defined?



-- 
	-lauther

----------------------------------------------------------------------------
Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
Siemens ZT SE 4         Internet: Ulrich.Lauther@mchp.siemens.de



More information about the Gcc mailing list