202-musl_mips.patch 427 B

12345678910111213
  1. --- a/gcc/config/mips/linux.h
  2. +++ b/gcc/config/mips/linux.h
  3. @@ -18,3 +18,10 @@ along with GCC; see the file COPYING3.
  4. <http://www.gnu.org/licenses/>. */
  5. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  6. +
  7. +#if TARGET_ENDIAN_DEFAULT == 0 /* LE */
  8. +#define MUSL_DYNAMIC_LINKER_E "%{EB:;:el}"
  9. +#else
  10. +#define MUSL_DYNAMIC_LINKER_E "%{EL:el}"
  11. +#endif
  12. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-mips" MUSL_DYNAMIC_LINKER_E ".so.1"