200-musl_fix.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --- a/coregrind/vg_preloaded.c
  2. +++ b/coregrind/vg_preloaded.c
  3. @@ -56,7 +56,7 @@
  4. void VG_NOTIFY_ON_LOAD(freeres)( void );
  5. void VG_NOTIFY_ON_LOAD(freeres)( void )
  6. {
  7. -# if !defined(__UCLIBC__) \
  8. +# if !defined(__UCLIBC__) && defined(__GLIBC__) \
  9. && !defined(VGPV_arm_linux_android) && !defined(VGPV_x86_linux_android) \
  10. && !defined(VGPV_mips32_linux_android)
  11. extern void __libc_freeres(void);
  12. --- a/include/pub_tool_redir.h
  13. +++ b/include/pub_tool_redir.h
  14. @@ -241,7 +241,7 @@
  15. /* --- Soname of the standard C library. --- */
  16. #if defined(VGO_linux)
  17. -# define VG_Z_LIBC_SONAME libcZdsoZa // libc.so*
  18. +# define VG_Z_LIBC_SONAME libcZdZa // libc.*
  19. #elif defined(VGO_darwin) && (DARWIN_VERS <= DARWIN_10_6)
  20. # define VG_Z_LIBC_SONAME libSystemZdZaZddylib // libSystem.*.dylib
  21. @@ -273,7 +273,11 @@
  22. /* --- Soname of the pthreads library. --- */
  23. #if defined(VGO_linux)
  24. +# if defined(__GLIBC__) || defined(__UCLIBC__)
  25. # define VG_Z_LIBPTHREAD_SONAME libpthreadZdsoZd0 // libpthread.so.0
  26. +# else
  27. +# define VG_Z_LIBPTHREAD_SONAME libcZdZa // libc.*
  28. +# endif
  29. #elif defined(VGO_darwin)
  30. # define VG_Z_LIBPTHREAD_SONAME libSystemZdZaZddylib // libSystem.*.dylib
  31. #else
  32. --- a/configure.ac
  33. +++ b/configure.ac
  34. @@ -1031,8 +1031,6 @@ case "${GLIBC_VERSION}" in
  35. *)
  36. AC_MSG_RESULT([unsupported version ${GLIBC_VERSION}])
  37. - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.19])
  38. - AC_MSG_ERROR([or Darwin or Bionic libc])
  39. ;;
  40. esac