Robert Eckhoff wrote:

>     ~/build_cygwin$ export CC=i686-pc-cygwin-gcc

Don't set this.  Leave CC set to the host, not target, compiler.

>     ~/build_cygwin$ ~/cygwin-1.5.25-11/configure
>     --prefix=/home/rpeckhoff/boot_system/ --host=i686-pc-cygwin
>     --build=x86_64-unknown-linux-gnu -v

When cross compiling, the configure script should find and use
$target-gcc automatically.

>     checking for correct version of gmp.h... no
>     
> /home/rpeckhoff/boot_system/bin/../lib/gcc/i686-pc-cygwin/4.3.0/../../../../i686-pc-cygwin/bin/ld:
>     crt0.o: No such file: No such file or directory
>     collect2: ld returned 1 exit status

This is a check for a *host* library that's being done with the *target*
tool.  Don't set CC when cross compiling.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to