100-uclibc-conf.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --- a/bfd/configure
  2. +++ b/bfd/configure
  3. @@ -3580,6 +3580,11 @@
  4. lt_cv_deplibs_check_method=pass_all
  5. ;;
  6. +linux-uclibc*)
  7. + lt_cv_deplibs_check_method=pass_all
  8. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  9. + ;;
  10. +
  11. netbsd* | knetbsd*-gnu)
  12. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  13. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  14. --- a/libtool.m4
  15. +++ b/libtool.m4
  16. @@ -751,6 +751,11 @@
  17. fi
  18. ;;
  19. +linux-uclibc*)
  20. + lt_cv_deplibs_check_method=pass_all
  21. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  22. + ;;
  23. +
  24. newsos6)
  25. [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
  26. lt_cv_file_magic_cmd=/usr/bin/file
  27. --- a/ltconfig
  28. +++ b/ltconfig
  29. @@ -602,7 +602,7 @@
  30. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  31. case $host_os in
  32. -linux-gnu*) ;;
  33. +linux-gnu*|linux-uclibc*) ;;
  34. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  35. esac
  36. @@ -1270,6 +1270,24 @@
  37. dynamic_linker='GNU/Linux ld.so'
  38. ;;
  39. +linux-uclibc*)
  40. + version_type=linux
  41. + need_lib_prefix=no
  42. + need_version=no
  43. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  44. + soname_spec='${libname}${release}.so$major'
  45. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  46. + shlibpath_var=LD_LIBRARY_PATH
  47. + shlibpath_overrides_runpath=no
  48. + # This implies no fast_install, which is unacceptable.
  49. + # Some rework will be needed to allow for fast_install
  50. + # before this can be enabled.
  51. + # Note: copied from linux-gnu, and may not be appropriate.
  52. + hardcode_into_libs=yes
  53. + # Assume using the uClibc dynamic linker.
  54. + dynamic_linker="uClibc ld.so"
  55. + ;;
  56. +
  57. netbsd*)
  58. need_lib_prefix=no
  59. need_version=no
  60. --- a/opcodes/configure
  61. +++ b/opcodes/configure
  62. @@ -3591,6 +3591,11 @@
  63. fi
  64. ;;
  65. +linux-uclibc*)
  66. + lt_cv_deplibs_check_method=pass_all
  67. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  68. + ;;
  69. +
  70. newsos6)
  71. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  72. lt_cv_file_magic_cmd=/usr/bin/file