This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Compiling Cygwin on Linux
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 03 Apr 2008 13:07:15 -0700
- Subject: Re: Compiling Cygwin on Linux
- References: <47F1B87A.3050709@gmail.com>
- Reply-to: cygwin at cygwin dot com
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/