m68k-musl.patch 963 B

12345678910111213141516171819202122232425
  1. diff -Nur gcc-7.3.0.orig/gcc/config/m68k/linux.h gcc-7.3.0/gcc/config/m68k/linux.h
  2. --- gcc-7.3.0.orig/gcc/config/m68k/linux.h 2017-01-06 22:21:02.000000000 +0100
  3. +++ gcc-7.3.0/gcc/config/m68k/linux.h 2018-10-05 06:38:51.000000000 +0200
  4. @@ -73,6 +73,9 @@
  5. #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
  6. +#undef MUSL_DYNAMIC_LINKER
  7. +#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-m68k.so.1"
  8. +
  9. #undef LINK_SPEC
  10. #define LINK_SPEC "-m m68kelf %{shared} \
  11. %{!shared: \
  12. diff -Nur gcc-7.3.0.orig/libgcc/config/m68k/linux-unwind.h gcc-7.3.0/libgcc/config/m68k/linux-unwind.h
  13. --- gcc-7.3.0.orig/libgcc/config/m68k/linux-unwind.h 2017-07-04 12:22:56.000000000 +0200
  14. +++ gcc-7.3.0/libgcc/config/m68k/linux-unwind.h 2018-10-05 06:38:51.000000000 +0200
  15. @@ -37,7 +37,7 @@
  16. stack_t uc_stack;
  17. mcontext_t uc_mcontext;
  18. unsigned long uc_filler[80];
  19. - __sigset_t uc_sigmask;
  20. + sigset_t uc_sigmask;
  21. };
  22. #define MD_FALLBACK_FRAME_STATE_FOR m68k_fallback_frame_state