delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | Tony Kimball <alk AT pobox DOT com> |
MIME-Version: | 1.0 |
Message-ID: | <15078.19108.483528.155751@spanky.love.edu> |
Date: | Tue, 24 Apr 2001 22:55:16 -0500 (CDT) |
X-Face: | \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.<li^!8ecK]}3L- |
6`ZQW3}kxy*5]B<KA"&iBl58"/$W-0PP`B7c%'XczR)8T0VN47L`rQlu8qBIX4TJ|v'D%:k7GO%v4A | |
Os>Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO | |
5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed | |
Reply-To: | alk AT pobox DOT com |
To: | cygwin AT cygwin DOT com |
Subject: | patch for cross-compilation bootstrap |
X-Mailer: | VM 6.72 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid |
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. @ 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 </dev/null 2>&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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |