patches/cygwin/1.5.15-1/cygwin-1.5.15-1-crossbuild.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
Message-ID: <4269173F.7020705@zee2.com>
yann@1
     2
Date: Fri, 22 Apr 2005 16:24:47 +0100
yann@1
     3
From: Steve Papacharalambous <stevep@zee2.com>
yann@1
     4
To: "Robert P. J. Day" <rpjday@mindspring.com>
yann@1
     5
CC: crossgcc list <crossgcc@sources.redhat.com>
yann@1
     6
Subject: Re: cygwin source directory has moved
yann@1
     7
In-Reply-To: <Pine.LNX.4.61.0504181746050.11794@localhost.localdomain>
yann@1
     8
yann@1
     9
Hi Robert,
yann@1
    10
yann@1
    11
I've attached two patches:
yann@1
    12
yann@1
    13
1/  For crosstool-0.31 which changes the CYGWIN_URL to one which has the
yann@1
    14
cygwin source archives.  The version of cygwin that is used to build the
yann@1
    15
cross toolchain has been changed to cygwin-1.5.15-1-src.tar.bz2 since
yann@1
    16
most of the mirror sites don't seem to have the original archive used.
yann@1
    17
[created gcc-3.3.2-cygwin-1.5.15-1.dat - dank]
yann@1
    18
yann@1
    19
yann@1
    20
2/ The later cygwin source archive fails to cross build with the error:
yann@1
    21
/opt/crosstool/i686-pc-cygwin/gcc-3.3.2-cygwin-1.5.15-1/lib/gcc-lib/i686-pc-cygwin/bin/ld:
yann@1
    22
cannot find -luser32
yann@1
    23
yann@1
    24
unless the second patch is applied,
yann@1
    25
yann@1
    26
yann@1
    27
diff -uNr cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in cygwin-1.5.15-1/winsup/mingw/Makefile.in
yann@1
    28
--- cygwin-1.5.15-1.orig/winsup/mingw/Makefile.in	2005-02-28 22:51:02.000000000 +0000
yann@1
    29
+++ cygwin-1.5.15-1/winsup/mingw/Makefile.in	2005-04-22 15:29:18.000000000 +0100
yann@1
    30
@@ -71,7 +71,7 @@
yann@1
    31
 mkinstalldirs = $(SHELL) @MKINSTALLDIRS@
yann@1
    32
 
yann@1
    33
 CC := @CC@
yann@1
    34
-override CC := ${filter-out -L% -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\)  *[^ ]*\( \|$$\)% %g'}}
yann@1
    35
+override CC := ${filter-out -B%,${shell echo $(CC) | sed -e 's%\(-isystem\|-iwithprefixbefore\)  *[^ ]*\( \|$$\)% %g'}}
yann@1
    36
 # FIXME: Which is it, CC or CC_FOR_TARGET?
yann@1
    37
 CC_FOR_TARGET = $(CC)
yann@1
    38
 AS_FOR_TARGET = $(AS)
yann@1
    39
yann@1
    40