1
0

musl-stubs.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. diff -Nur gcc-4.8.2.orig/gcc/config/m68k/linux.h gcc-4.8.2/gcc/config/m68k/linux.h
  2. --- gcc-4.8.2.orig/gcc/config/m68k/linux.h 2013-01-10 21:38:27.000000000 +0100
  3. +++ gcc-4.8.2/gcc/config/m68k/linux.h 2014-02-24 10:19:00.214399704 +0100
  4. @@ -72,6 +72,7 @@
  5. done. */
  6. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  7. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-m68k.so.1"
  8. #undef LINK_SPEC
  9. #define LINK_SPEC "-m m68kelf %{shared} \
  10. diff -Nur gcc-4.8.2.orig/gcc/config/mips/linux64.h gcc-4.8.2/gcc/config/mips/linux64.h
  11. --- gcc-4.8.2.orig/gcc/config/mips/linux64.h 2013-01-10 21:38:27.000000000 +0100
  12. +++ gcc-4.8.2/gcc/config/mips/linux64.h 2014-02-24 10:19:47.238583895 +0100
  13. @@ -27,6 +27,9 @@
  14. #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
  15. #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
  16. #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
  17. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-mips.so.1"
  18. +#define MUSL_DYNAMIC_LINKERN32 "/lib/ld-musl-mips.so.1"
  19. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-mips.so.1"
  20. #define GNU_USER_DYNAMIC_LINKERN32 \
  21. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
  22. - BIONIC_DYNAMIC_LINKERN32)
  23. + BIONIC_DYNAMIC_LINKERN32, MUSL_DYNAMIC_LINKERN32)
  24. diff -Nur gcc-4.8.2.orig/gcc/config/sparc/linux64.h gcc-4.8.2/gcc/config/sparc/linux64.h
  25. --- gcc-4.8.2.orig/gcc/config/sparc/linux64.h 2013-01-10 21:38:27.000000000 +0100
  26. +++ gcc-4.8.2/gcc/config/sparc/linux64.h 2014-02-24 10:20:49.414827006 +0100
  27. @@ -94,6 +94,9 @@
  28. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  29. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
  30. +#define MUSL_DYNAMIC_LINKER32 "/lib/ld-musl-sparc.so.1"
  31. +#define MUSL_DYNAMIC_LINKER64 "/lib/ld-musl-sparc.so.1"
  32. +
  33. #ifdef SPARC_BI_ARCH
  34. diff -Nur gcc-4.8.2.orig/gcc/config/sparc/linux.h gcc-4.8.2/gcc/config/sparc/linux.h
  35. --- gcc-4.8.2.orig/gcc/config/sparc/linux.h 2013-01-10 21:38:27.000000000 +0100
  36. +++ gcc-4.8.2/gcc/config/sparc/linux.h 2014-02-24 10:21:14.342924339 +0100
  37. @@ -84,6 +84,7 @@
  38. done. */
  39. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  40. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-sparc.so.1"
  41. #undef LINK_SPEC
  42. #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \