proot-2.3.1-lib-paths-fix.patch 700 B

1234567891011121314151617181920
  1. --- src/execve/ldso.c 2013-01-23 16:22:37.870287856 +0400
  2. +++ src/execve/ldso.c 2013-01-23 16:31:40.219283675 +0400
  3. @@ -285,16 +285,10 @@
  4. /* 6. /lib, /usr/lib + /usr/local/lib */
  5. if (IS_CLASS32(elf_header))
  6. status = add_host_ldso_paths(host_ldso_paths,
  7. -#if defined(ARCH_X86) || defined(ARCH_X86_64)
  8. - "/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:"
  9. -#endif
  10. "/lib32:/usr/lib32:/usr/local/lib32"
  11. ":/lib:/usr/lib:/usr/local/lib");
  12. else
  13. status = add_host_ldso_paths(host_ldso_paths,
  14. -#if defined(ARCH_X86_64)
  15. - "/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:"
  16. -#endif
  17. "/lib64:/usr/lib64:/usr/local/lib64"
  18. ":/lib:/usr/lib:/usr/local/lib");
  19. if (status < 0)