1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/cygwin/1.5.15-1/cygwin-1.5.15-1-crossbuild.patch Sun May 13 21:12:56 2007 +0000
1.3 @@ -0,0 +1,40 @@
1.4 +Message-ID: <4269173F.7020705@zee2.com>
1.5 +Date: Fri, 22 Apr 2005 16:24:47 +0100
1.6 +From: Steve Papacharalambous <stevep@zee2.com>
1.7 +To: "Robert P. J. Day" <rpjday@mindspring.com>
1.8 +CC: crossgcc list <crossgcc@sources.redhat.com>
1.9 +Subject: Re: cygwin source directory has moved
1.10 +In-Reply-To: <Pine.LNX.4.61.0504181746050.11794@localhost.localdomain>
1.11 +
1.12 +Hi Robert,
1.13 +
1.14 +I've attached two patches:
1.15 +
1.16 +1/ For crosstool-0.31 which changes the CYGWIN_URL to one which has the
1.17 +cygwin source archives. The version of cygwin that is used to build the
1.18 +cross toolchain has been changed to cygwin-1.5.15-1-src.tar.bz2 since
1.19 +most of the mirror sites don't seem to have the original archive used.
1.20 +[created gcc-3.3.2-cygwin-1.5.15-1.dat - dank]
1.21 +
1.22 +
1.23 +2/ The later cygwin source archive fails to cross build with the error:
1.24 +/opt/crosstool/i686-pc-cygwin/gcc-3.3.2-cygwin-1.5.15-1/lib/gcc-lib/i686-pc-cygwin/bin/ld:
1.25 +cannot find -luser32
1.26 +
1.27 +unless the second patch is applied,
1.28 +
1.29 +
1.30 +diff -uNr cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in cygwin-1.5.15-1/winsup/mingw/Makefile.in
1.31 +--- cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in 2005-02-28 22:51:02.000000000 +0000
1.32 ++++ cygwin-1.5.15-1/winsup/mingw/Makefile.in 2005-04-22 15:29:18.000000000 +0100
1.33 +@@ -71,7 +71,7 @@
1.34 + mkinstalldirs = $(SHELL) @MKINSTALLDIRS@
1.35 +
1.36 + CC := @CC@
1.37 +-override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
1.38 ++override CC := ${filter-out -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\) *[^ ]*\( \|$$\)% %g'}}
1.39 + # FIXME: Which is it, CC or CC_FOR_TARGET?
1.40 + CC_FOR_TARGET = $(CC)
1.41 + AS_FOR_TARGET = $(AS)
1.42 +
1.43 +