Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 1 Feb 2003 20:32:53 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cross compiling Message-ID: <20030202013253.GA22893@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <555055656 DOT 20030201135553 AT huno DOT net> <1044144678 DOT 29443 DOT 6 DOT camel AT milo> <037801c2ca51$270a1890$a65086d9 AT webdev> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <037801c2ca51$270a1890$a65086d9@webdev> User-Agent: Mutt/1.5.1i On Sun, Feb 02, 2003 at 12:21:22AM -0000, Elfyn McBratney wrote: >Sorry, could not be arsed to reformat this... :-) > >Im pretty sure, it makes sense to me and kinda confirmed in the mknetrel >script, that Chris (cgf) uses cross gcc, binutils and maybe more that are >targetted for i{3,4,5,6?}86-pc-cygwin... So you'd need to compile at very >least a cross-compiler for cygwin. Yes, I use a linux x cygwin gcc+binutils for all of my cygwin work. That's sort of stock in trade for my division of Red Hat (the division formerly known as Cygnus). I use the "uberbaum" repository to check out everything in one tree: cvs -d :pserver:anoncvs AT sources DOT redhat DOT com:/cvs/uberbaum login cvs -d :pserver:anoncvs AT sources DOT redhat DOT com:/cvs/uberbaum co . This is the configure line I used to build everything: /path/to/source/configure --target=i686-pc-cygwin --build=i686-pc-linux \ --host=i686-pc-linux --prefix=/somewhere --disable-nls \ --enable-languages=c++ --enable-sjlj-exceptions And then use: make all install To install it. This creates i686-pc-cygwin-gcc, i686-pc-cygwin-ld, i686-pc-cygwin-as, etc. that are used to build cygwin. There is a mailing list for discussing cross gcc: crossgcc AT sources DOT redhat DOT com. Before someone asks, I built the cross compiler myself, I'm not willing to make it available for general distribution, and I'm not willing to act as a mentor to other enterprising souls who want to do the same thing. There are surely web sites out there which deal with this issue. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/