patches/gdb/6.4/100-uclibc-conf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Feb 17 22:12:59 2008 +0000 (2008-02-17)
changeset 433 9886aa0a9694
permissions -rw-r--r--
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.
yann@96
     1
--- gdb-6.3/bfd/configure.orig	Fri Oct  8 16:53:56 2004
yann@96
     2
+++ gdb-6.3/bfd/configure	Sun Feb 27 18:32:58 2005
yann@96
     3
@@ -3583,6 +3583,11 @@
yann@96
     4
   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
yann@96
     5
   ;;
yann@96
     6
 
yann@96
     7
+linux-uclibc*)
yann@96
     8
+  lt_cv_deplibs_check_method=pass_all
yann@96
     9
+  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
yann@96
    10
+  ;;
yann@96
    11
+
yann@96
    12
 netbsd* | knetbsd*-gnu)
yann@96
    13
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
yann@96
    14
     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
yann@96
    15
--- gdb-6.3/libtool.m4.orig	Wed Jul 21 21:21:41 2004
yann@96
    16
+++ gdb-6.3/libtool.m4	Mon Feb 28 00:08:11 2005
yann@96
    17
@@ -653,6 +653,11 @@
yann@96
    18
   fi
yann@96
    19
   ;;
yann@96
    20
 
yann@96
    21
+linux-uclibc*)
yann@96
    22
+  lt_cv_deplibs_check_method=pass_all
yann@96
    23
+  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
yann@96
    24
+  ;;
yann@96
    25
+
yann@96
    26
 newsos6)
yann@96
    27
   [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
yann@96
    28
   lt_cv_file_magic_cmd=/usr/bin/file
yann@96
    29
--- gdb-6.3/ltconfig.orig	Tue Oct  5 15:34:42 2004
yann@96
    30
+++ gdb-6.3/ltconfig	Sun Feb 27 18:14:41 2005
yann@96
    31
@@ -602,7 +602,7 @@
yann@96
    32
 
yann@96
    33
 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
yann@96
    34
 case $host_os in
yann@96
    35
-linux-gnu*) ;;
yann@96
    36
+linux-gnu*|linux-uclibc*) ;;
yann@96
    37
 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
yann@96
    38
 esac
yann@96
    39
 
yann@96
    40
@@ -1270,6 +1270,24 @@
yann@96
    41
   dynamic_linker='GNU/Linux ld.so'
yann@96
    42
   ;;
yann@96
    43
 
yann@96
    44
+linux-uclibc*)
yann@96
    45
+  version_type=linux
yann@96
    46
+  need_lib_prefix=no
yann@96
    47
+  need_version=no
yann@96
    48
+  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
yann@96
    49
+  soname_spec='${libname}${release}.so$major'
yann@96
    50
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
yann@96
    51
+  shlibpath_var=LD_LIBRARY_PATH
yann@96
    52
+  shlibpath_overrides_runpath=no
yann@96
    53
+  # This implies no fast_install, which is unacceptable.
yann@96
    54
+  # Some rework will be needed to allow for fast_install
yann@96
    55
+  # before this can be enabled.
yann@96
    56
+  # Note: copied from linux-gnu, and may not be appropriate.
yann@96
    57
+  hardcode_into_libs=yes
yann@96
    58
+  # Assume using the uClibc dynamic linker.
yann@96
    59
+  dynamic_linker="uClibc ld.so"
yann@96
    60
+  ;;
yann@96
    61
+
yann@96
    62
 netbsd*)
yann@96
    63
   need_lib_prefix=no
yann@96
    64
   need_version=no
yann@96
    65
--- gdb-6.3/opcodes/configure.orig	Fri Sep 17 08:13:38 2004
yann@96
    66
+++ gdb-6.3/opcodes/configure	Mon Feb 28 00:09:42 2005
yann@96
    67
@@ -3595,6 +3595,11 @@
yann@96
    68
   fi
yann@96
    69
   ;;
yann@96
    70
 
yann@96
    71
+linux-uclibc*)
yann@96
    72
+  lt_cv_deplibs_check_method=pass_all
yann@96
    73
+  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
yann@96
    74
+  ;;
yann@96
    75
+
yann@96
    76
 newsos6)
yann@96
    77
   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
yann@96
    78
   lt_cv_file_magic_cmd=/usr/bin/file