patches/gdb/6.6/100-uclibc-conf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 17 22:08:06 2008 +0000 (2008-02-17)
changeset 431 8bde4c6ea47a
permissions -rw-r--r--
Robert P. J. DAY says:

apparently, the patchset for gcc 4.2.1 applies properly to the
source for gcc 4.2.2 and gcc 4.2.3. so, if you want, you can simply
add support for those last two just by augmenting menuconfig and
adding a couple symlinks for those two directories. seems like a
cheap way to add a couple new versions.
     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  
     8 +linux-uclibc*)
     9 +  lt_cv_deplibs_check_method=pass_all
    10 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
    11 +  ;;
    12 +
    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)
    20    fi
    21    ;;
    22  
    23 +linux-uclibc*)
    24 +  lt_cv_deplibs_check_method=pass_all
    25 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
    26 +  ;;
    27 +
    28  newsos6)
    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/^\([^-]*\)-
    35  
    36  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    37  case $host_os in
    38 -linux-gnu*) ;;
    39 +linux-gnu*|linux-uclibc*) ;;
    40  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
    41  esac
    42  
    43 @@ -1270,6 +1270,24 @@ linux-gnu*)
    44    dynamic_linker='GNU/Linux ld.so'
    45    ;;
    46  
    47 +linux-uclibc*)
    48 +  version_type=linux
    49 +  need_lib_prefix=no
    50 +  need_version=no
    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"
    63 +  ;;
    64 +
    65  netbsd*)
    66    need_lib_prefix=no
    67    need_version=no
    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)
    72    fi
    73    ;;
    74  
    75 +linux-uclibc*)
    76 +  lt_cv_deplibs_check_method=pass_all
    77 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
    78 +  ;;
    79 +
    80  newsos6)
    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