mips64.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. diff -Nur glibc-2.10-current.orig/ports/sysdeps/mips/mips64/n32/Makefile glibc-2.10-current/ports/sysdeps/mips/mips64/n32/Makefile
  2. --- glibc-2.10-current.orig/ports/sysdeps/mips/mips64/n32/Makefile 2009-05-26 22:53:27.000000000 +0200
  3. +++ glibc-2.10-current/ports/sysdeps/mips/mips64/n32/Makefile 2009-05-27 02:23:06.000000000 +0200
  4. @@ -1,6 +1,2 @@
  5. # `long double' is a distinct type we support.
  6. long-double-fcts = yes
  7. -
  8. -ifeq ($(filter -mabi=n32,$(CC)),)
  9. -CC += -mabi=n32
  10. -endif
  11. diff -Nur glibc-2.10-current.orig/ports/sysdeps/mips/mips64/n64/Makefile glibc-2.10-current/ports/sysdeps/mips/mips64/n64/Makefile
  12. --- glibc-2.10-current.orig/ports/sysdeps/mips/mips64/n64/Makefile 2009-05-26 22:53:27.000000000 +0200
  13. +++ glibc-2.10-current/ports/sysdeps/mips/mips64/n64/Makefile 2009-05-27 02:20:00.000000000 +0200
  14. @@ -1,6 +1,2 @@
  15. # `long double' is a distinct type we support.
  16. long-double-fcts = yes
  17. -
  18. -ifeq ($(filter -mabi=64,$(CC)),)
  19. -CC += -mabi=64
  20. -endif
  21. diff -Nur glibc-2.10-current.orig/ports/sysdeps/mips/preconfigure glibc-2.10-current/ports/sysdeps/mips/preconfigure
  22. --- glibc-2.10-current.orig/ports/sysdeps/mips/preconfigure 2009-05-26 22:53:27.000000000 +0200
  23. +++ glibc-2.10-current/ports/sysdeps/mips/preconfigure 2009-05-27 02:20:14.000000000 +0200
  24. @@ -22,7 +22,7 @@
  25. if test $mips_config_abi != $mips_cc_abi; then
  26. # This won't make it to config.make, but we want to
  27. # set this in case configure tests depend on it.
  28. - CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
  29. + CPPFLAGS="$CPPFLAGS"
  30. fi
  31. ;;
  32. mips*) base_machine=mips machine=mips/mips32/$machine ;;
  33. diff -Nur glibc-2.10-current.orig/ports/sysdeps/unix/sysv/linux/mips/configure glibc-2.10-current/ports/sysdeps/unix/sysv/linux/mips/configure
  34. --- glibc-2.10-current.orig/ports/sysdeps/unix/sysv/linux/mips/configure 2009-05-26 22:53:29.000000000 +0200
  35. +++ glibc-2.10-current/ports/sysdeps/unix/sysv/linux/mips/configure 2009-05-27 20:34:25.000000000 +0200
  36. @@ -84,22 +84,6 @@
  37. # and libc_cv_localedir.
  38. test -n "$libc_cv_slibdir" || \
  39. case $machine in
  40. - mips/mips64/n64/* )
  41. - libc_cv_slibdir="/lib64"
  42. - if test "$libdir" = '${exec_prefix}/lib'; then
  43. - libdir='${exec_prefix}/lib64';
  44. - # Locale data can be shared between 32bit and 64bit libraries
  45. - libc_cv_localedir='${exec_prefix}/lib/locale'
  46. - fi
  47. - ;;
  48. - mips/mips64/n32/* )
  49. - libc_cv_slibdir="/lib32"
  50. - if test "$libdir" = '${exec_prefix}/lib'; then
  51. - libdir='${exec_prefix}/lib32';
  52. - # Locale data can be shared between 32bit and 64bit libraries
  53. - libc_cv_localedir='${exec_prefix}/lib/locale'
  54. - fi
  55. - ;;
  56. *)
  57. libc_cv_slibdir="/lib"
  58. ;;