Robert P. J. DAY says:
According to Mike Frysinger, this patch was removed from Gentoo in the
2.3.x series and didn't seem to cause any adverse effects. So toss it
from the patch directories for glibc 2.5 and up.
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
9 + lt_cv_deplibs_check_method=pass_all
10 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
13 netbsd* | knetbsd*-gnu)
14 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
16 diff -rNdup gdb-6.6.orig/libtool.m4 gdb-6.6/libtool.m4
17 --- gdb-6.6.orig/libtool.m4 2005-12-27 17:37:57.000000000 +0100
18 +++ gdb-6.6/libtool.m4 2007-05-14 10:35:50.000000000 +0200
19 @@ -751,6 +751,11 @@ netbsd* | knetbsd*-gnu)
24 + lt_cv_deplibs_check_method=pass_all
25 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
29 [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
30 lt_cv_file_magic_cmd=/usr/bin/file
31 diff -rNdup gdb-6.6.orig/ltconfig gdb-6.6/ltconfig
32 --- gdb-6.6.orig/ltconfig 2006-07-04 22:31:03.000000000 +0200
33 +++ gdb-6.6/ltconfig 2007-05-14 10:35:50.000000000 +0200
34 @@ -602,7 +602,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
36 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
39 +linux-gnu*|linux-uclibc*) ;;
40 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
43 @@ -1270,6 +1270,24 @@ linux-gnu*)
44 dynamic_linker='GNU/Linux ld.so'
51 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
52 + soname_spec='${libname}${release}.so$major'
53 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
54 + shlibpath_var=LD_LIBRARY_PATH
55 + shlibpath_overrides_runpath=no
56 + # This implies no fast_install, which is unacceptable.
57 + # Some rework will be needed to allow for fast_install
58 + # before this can be enabled.
59 + # Note: copied from linux-gnu, and may not be appropriate.
60 + hardcode_into_libs=yes
61 + # Assume using the uClibc dynamic linker.
62 + dynamic_linker="uClibc ld.so"
68 diff -rNdup gdb-6.6.orig/opcodes/configure gdb-6.6/opcodes/configure
69 --- gdb-6.6.orig/opcodes/configure 2006-10-25 08:49:20.000000000 +0200
70 +++ gdb-6.6/opcodes/configure 2007-05-14 10:35:50.000000000 +0200
71 @@ -3590,6 +3590,11 @@ netbsd* | knetbsd*-gnu)
76 + lt_cv_deplibs_check_method=pass_all
77 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
81 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
82 lt_cv_file_magic_cmd=/usr/bin/file