002-mips_bootstrap_gcc_header_install.patch 1.5 KB

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