madham@engmail.uwaterloo.ca wrote:
> Hey,
>
> Has anyone had any success cross-compiling ncurses? I am having
> problems with the configure script not recognizing my CC..
>
> Ex, if my GNUmakefile does:
> ./configure --target=arm-unknown-linux-gnu --with-shared --without-ada
> --with-build-cc=$CC --with-build-cpp=$CXX --with-build-cppflags=
> $CPPFLAGS --disable-big-core --enable-termcap --enable-echo --enable-
> warnings
>
> and sets:
> CC :=arm-none-linux-gnueabi-gcc
> CXX :=arm-none-linux-gnueabi-g++


May be no help at all to you, but I cross compile it for PPC from i386 with
the following in the shell:

[ppc405] export CC=powerpc-405-linux-gnu-gcc
[ppc405] ./configure
--prefix=/opt/crosstool/gcc-4.1.0-glibc-2.3.6/powerpc-405-linux-gnu/powerpc-405-linux-gnu
--without-ada --without-progs --host=ppc
--with-terminfo-dirs=/usr/share/terminfo --with-fallbacks=linux,vt100,xterm


Nobby