202-musl_mips.patch 470 B

12345678910111213
  1. --- a/gcc/config/mips/linux.h
  2. +++ b/gcc/config/mips/linux.h
  3. @@ -23,3 +23,10 @@ along with GCC; see the file COPYING3.
  4. #undef UCLIBC_DYNAMIC_LINKER
  5. #define UCLIBC_DYNAMIC_LINKER \
  6. "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
  7. +
  8. +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
  9. +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
  10. +#else
  11. +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
  12. +#endif
  13. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E ".so.1"