patches/glibc/2.3.6/glibc-mips-bootstrap-gcc-header-install.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.
     1 http://sourceware.org/ml/crossgcc/2005-05/msg00165.html
     2 Fixes a MIPS build problem (unrelated to NPTL)
     3 
     4 Message-ID: <428E8B24.1000201@realitydiluted.com>
     5 Date: Fri, 20 May 2005 20:13:08 -0500
     6 From: "Steven J dot  Hill" <sjhill at realitydiluted dot com>
     7 To:  crossgcc at sources dot redhat dot com,  toolchain at gentoo dot org, 
     8  Shay_Gal-On at pmc-sierra dot com,  TheNop at gmx dot net
     9 Subject: New NPTL patches for crosstools and MIPS NPTL patches....
    10 
    11 Greetings.
    12 
    13 I have uploaded the latest NPTL patch for crosstool-0.34. I have also
    14 uploaded a tarball of the patches necessary to build a MIPS NPTL
    15 cross toolchain. To build a MIPS NPTL toolchain you will need the
    16 released version of binutils-2.16 and the absolute latest GCC and
    17 glibc code from the HEAD of cvs. Use the 'demo-mips-nptl.sh' script
    18 to build the toolchain. Please report bugs or issues to the crossgcc
    19 mailing list. Here is the link off of my FTP site:
    20 
    21     ftp://ftp.realitydiluted.com/crosstools/crosstool-0.34/
    22 
    23 [Note: BOOTSTRAP_GCC is set by crosstool.sh when invoking make install-headers]
    24 
    25 diff -ur glibc-2.4.0-20050406/sysdeps/mips/mips32/Makefile glibc-2.4.0-20050406-patched/sysdeps/mips/mips32/Makefile
    26 --- glibc-2.4.0-20050406/sysdeps/mips/mips32/Makefile	2003-03-29 02:15:28.000000000 -0600
    27 +++ glibc-2.4.0-20050406-patched/sysdeps/mips/mips32/Makefile	2005-04-12 21:36:51.318837655 -0500
    28 @@ -1,3 +1,7 @@
    29 +ifeq ($(filter -DBOOTSTRAP_GCC,$(CFLAGS)),)
    30  ifeq ($(filter -mabi=32,$(CC)),)
    31  CC += -mabi=32
    32  endif
    33 +else
    34 +CC += -D"_MIPS_SZPTR=32"
    35 +endif
    36 
    37 Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>