100-uclibc-conf.patch 2.8 KB

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