OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0024-Pure-64-bit-MIPS.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 717090cf538f765db1730956c512a43f2d52a802 Mon Sep 17 00:00:00 2001
  17. From: Nils Andreas Svee <me@lochnair.net>
  18. Date: Thu, 21 Dec 2017 03:14:33 +0100
  19. Subject: [PATCH 24/30] Pure 64-bit MIPS
  20. ---
  21. gcc/config/mips/mips.h | 8 ++++----
  22. gcc/config/mips/t-linux64 | 6 +++---
  23. 2 files changed, 7 insertions(+), 7 deletions(-)
  24. diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
  25. index 3ce0c19a29a..b9920b49167 100644
  26. --- a/gcc/config/mips/mips.h
  27. +++ b/gcc/config/mips/mips.h
  28. @@ -3424,11 +3424,11 @@ struct GTY(()) machine_function {
  29. /* If we are *not* using multilibs and the default ABI is not ABI_32 we
  30. need to change these from /lib and /usr/lib. */
  31. #if MIPS_ABI_DEFAULT == ABI_N32
  32. -#define STANDARD_STARTFILE_PREFIX_1 "/lib32/"
  33. -#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib32/"
  34. +#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
  35. +#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
  36. #elif MIPS_ABI_DEFAULT == ABI_64
  37. -#define STANDARD_STARTFILE_PREFIX_1 "/lib64/"
  38. -#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib64/"
  39. +#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
  40. +#define STANDARD_STARTFILE_PREFIX_2 "/usr/lib/"
  41. #endif
  42. /* Load store bonding is not supported by micromips and fix_24k. The
  43. diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64
  44. index ceb58d3b5f3..8116e23ebba 100644
  45. --- a/gcc/config/mips/t-linux64
  46. +++ b/gcc/config/mips/t-linux64
  47. @@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
  48. MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  49. MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
  50. MULTILIB_OSDIRNAMES = \
  51. - ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
  52. - ../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
  53. - ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
  54. + ../lib \
  55. + ../lib32 \
  56. + ../lib
  57. --
  58. 2.27.0