Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 24 Apr 2001 23:59:38 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: patch for cross-compilation bootstrap Message-ID: <20010424235938.A3880@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <15078 DOT 19108 DOT 483528 DOT 155751 AT spanky DOT love DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <15078.19108.483528.155751@spanky.love.edu>; from alk@pobox.com on Tue, Apr 24, 2001 at 10:55:16PM -0500 On Tue, Apr 24, 2001 at 10:55:16PM -0500, Tony Kimball wrote: >I found this patch useful to allow me to bootstrap winsup/cygwin when >building a cross-compiler, linux hosted, for i386-cygwin targets. This >is a diff against :pserver:anoncvs AT anoncvs DOT cygnus DOT com:/cvs/src. It >overcomes the problem that -nostdinc prevents the cross-compiler from >finding stddef.h. I build all of my releases with a cross compiler and routinely build cygwin from scratch on linux. I haven't seen the problem that you are referring to, unless it has very recently shown up. cgf >@ spa:src$;cvs -z3 diff -u winsup/Makefile.common >Index: winsup/Makefile.common >=================================================================== >RCS file: /cvs/src/src/winsup/Makefile.common,v >retrieving revision 1.23 >diff -u -r1.23 Makefile.common >--- Makefile.common 2001/02/22 12:37:32 1.23 >+++ Makefile.common 2001/04/25 02:38:38 >@@ -88,9 +88,12 @@ > libgcc:=${subst \,/,${shell $(CC_FOR_TARGET) -print-libgcc-file-name}} > GCC_INCLUDE:=${word 1,${dir $(libgcc)}}/include > >+tgt_cpp:=$(shell $(CC_FOR_TARGET) -print-prog-name=cpp0) >+cpp_sysdirs:=$(shell $(tgt_cpp) -v &1 | grep gcc-lib) >+ > COMPILE_CXX:=$(CXX) $c -nostdinc++ $(ALL_CXXFLAGS) -I$(GCC_INCLUDE) \ > -fno-rtti -fno-exceptions >-COMPILE_CC:=$(CC) $c -nostdinc $(ALL_CFLAGS) -I$(GCC_INCLUDE) >+COMPILE_CC:=$(CC) $c -nostdinc $(ALL_CFLAGS) -I$(GCC_INCLUDE) $(patsubst %,-isystem %,$(cpp_sysdirs)) > > vpath %.a $(cygwin_build):$(w32api_lib):$(newlib_build)/libc:$(newlib_build)/libm > > > > > > >-- >Want to unsubscribe from this list? >Check out: http://cygwin.com/ml/#unsubscribe-simple -- cgf AT cygnus DOT com Red Hat, Inc. http://sources.redhat.com/ http://www.redhat.com/ -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple