patches/gcc/4.2.3/100-uclibc-conf.patch
changeset 1761 88020b2c3246
parent 313 2f223aafc7cb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.2.3/100-uclibc-conf.patch	Tue Jan 12 19:24:03 2010 +0100
     1.3 @@ -0,0 +1,216 @@
     1.4 +diff -durN gcc-4.2.1.orig/boehm-gc/configure gcc-4.2.1/boehm-gc/configure
     1.5 +--- gcc-4.2.1.orig/boehm-gc/configure	2007-07-19 16:33:56.000000000 +0200
     1.6 ++++ gcc-4.2.1/boehm-gc/configure	2007-08-03 20:29:22.000000000 +0200
     1.7 +@@ -4323,7 +4323,7 @@
     1.8 +   ;;
     1.9 + 
    1.10 + # This must be Linux ELF.
    1.11 +-linux-gnu*)
    1.12 ++linux*)
    1.13 +   lt_cv_deplibs_check_method=pass_all
    1.14 +   ;;
    1.15 + 
    1.16 +diff -durN gcc-4.2.1.orig/contrib/regression/objs-gcc.sh gcc-4.2.1/contrib/regression/objs-gcc.sh
    1.17 +--- gcc-4.2.1.orig/contrib/regression/objs-gcc.sh	2005-08-15 02:41:31.000000000 +0200
    1.18 ++++ gcc-4.2.1/contrib/regression/objs-gcc.sh	2007-08-03 20:29:22.000000000 +0200
    1.19 +@@ -105,6 +105,10 @@
    1.20 +  then
    1.21 +   make all-gdb all-dejagnu all-ld || exit 1
    1.22 +   make install-gdb install-dejagnu install-ld || exit 1
    1.23 ++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
    1.24 ++ then
    1.25 ++  make all-gdb all-dejagnu all-ld || exit 1
    1.26 ++  make install-gdb install-dejagnu install-ld || exit 1
    1.27 + elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
    1.28 +   make bootstrap || exit 1
    1.29 +   make install || exit 1
    1.30 +diff -durN gcc-4.2.1.orig/gcc/config/cris/linux.h gcc-4.2.1/gcc/config/cris/linux.h
    1.31 +--- gcc-4.2.1.orig/gcc/config/cris/linux.h	2006-02-18 12:12:51.000000000 +0100
    1.32 ++++ gcc-4.2.1/gcc/config/cris/linux.h	2007-08-03 20:29:22.000000000 +0200
    1.33 +@@ -74,7 +74,11 @@
    1.34 + #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
    1.35 + 
    1.36 + #undef CRIS_SUBTARGET_VERSION
    1.37 +-#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
    1.38 ++#if UCLIBC_DEFAULT
    1.39 ++# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
    1.40 ++#else
    1.41 ++# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
    1.42 ++#endif
    1.43 + 
    1.44 + #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
    1.45 + 
    1.46 +diff -durN gcc-4.2.1.orig/libffi/configure gcc-4.2.1/libffi/configure
    1.47 +--- gcc-4.2.1.orig/libffi/configure	2007-07-19 16:33:56.000000000 +0200
    1.48 ++++ gcc-4.2.1/libffi/configure	2007-08-03 20:29:22.000000000 +0200
    1.49 +@@ -3460,7 +3460,7 @@
    1.50 +   ;;
    1.51 + 
    1.52 + # This must be Linux ELF.
    1.53 +-linux-gnu*)
    1.54 ++linux*)
    1.55 +   lt_cv_deplibs_check_method=pass_all
    1.56 +   ;;
    1.57 + 
    1.58 +diff -durN gcc-4.2.1.orig/libgfortran/configure gcc-4.2.1/libgfortran/configure
    1.59 +--- gcc-4.2.1.orig/libgfortran/configure	2007-07-19 16:33:56.000000000 +0200
    1.60 ++++ gcc-4.2.1/libgfortran/configure	2007-08-03 20:29:22.000000000 +0200
    1.61 +@@ -3721,7 +3721,7 @@
    1.62 +   ;;
    1.63 + 
    1.64 + # This must be Linux ELF.
    1.65 +-linux-gnu*)
    1.66 ++linux*)
    1.67 +   lt_cv_deplibs_check_method=pass_all
    1.68 +   ;;
    1.69 + 
    1.70 +diff -durN gcc-4.2.1.orig/libgomp/configure gcc-4.2.1/libgomp/configure
    1.71 +--- gcc-4.2.1.orig/libgomp/configure	2007-07-19 16:33:56.000000000 +0200
    1.72 ++++ gcc-4.2.1/libgomp/configure	2007-08-03 20:29:22.000000000 +0200
    1.73 +@@ -3893,7 +3893,7 @@
    1.74 +   ;;
    1.75 + 
    1.76 + # This must be Linux ELF.
    1.77 +-linux-gnu*)
    1.78 ++linux*)
    1.79 +   lt_cv_deplibs_check_method=pass_all
    1.80 +   ;;
    1.81 + 
    1.82 +diff -durN gcc-4.2.1.orig/libjava/classpath/configure gcc-4.2.1/libjava/classpath/configure
    1.83 +--- gcc-4.2.1.orig/libjava/classpath/configure	2007-01-17 19:10:26.000000000 +0100
    1.84 ++++ gcc-4.2.1/libjava/classpath/configure	2007-08-03 20:29:22.000000000 +0200
    1.85 +@@ -5307,7 +5307,7 @@
    1.86 +   ;;
    1.87 + 
    1.88 + # This must be Linux ELF.
    1.89 +-linux-gnu*)
    1.90 ++linux*)
    1.91 +   lt_cv_deplibs_check_method=pass_all
    1.92 +   ;;
    1.93 + 
    1.94 +diff -durN gcc-4.2.1.orig/libjava/classpath/ltconfig gcc-4.2.1/libjava/classpath/ltconfig
    1.95 +--- gcc-4.2.1.orig/libjava/classpath/ltconfig	2006-08-07 22:37:50.000000000 +0200
    1.96 ++++ gcc-4.2.1/libjava/classpath/ltconfig	2007-08-03 20:29:22.000000000 +0200
    1.97 +@@ -603,7 +603,7 @@
    1.98 + 
    1.99 + # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   1.100 + case $host_os in
   1.101 +-linux-gnu*) ;;
   1.102 ++linux-gnu*|linux-uclibc*) ;;
   1.103 + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   1.104 + esac
   1.105 + 
   1.106 +@@ -1251,7 +1251,7 @@
   1.107 +   ;;
   1.108 + 
   1.109 + # This must be Linux ELF.
   1.110 +-linux-gnu*)
   1.111 ++linux*)
   1.112 +   version_type=linux
   1.113 +   need_lib_prefix=no
   1.114 +   need_version=no
   1.115 +diff -durN gcc-4.2.1.orig/libjava/configure gcc-4.2.1/libjava/configure
   1.116 +--- gcc-4.2.1.orig/libjava/configure	2007-07-19 16:33:56.000000000 +0200
   1.117 ++++ gcc-4.2.1/libjava/configure	2007-08-03 20:29:22.000000000 +0200
   1.118 +@@ -5424,7 +5424,7 @@
   1.119 +   ;;
   1.120 + 
   1.121 + # This must be Linux ELF.
   1.122 +-linux-gnu*)
   1.123 ++linux*)
   1.124 +   lt_cv_deplibs_check_method=pass_all
   1.125 +   ;;
   1.126 + 
   1.127 +diff -durN gcc-4.2.1.orig/libmudflap/configure gcc-4.2.1/libmudflap/configure
   1.128 +--- gcc-4.2.1.orig/libmudflap/configure	2006-12-04 12:13:07.000000000 +0100
   1.129 ++++ gcc-4.2.1/libmudflap/configure	2007-08-03 20:29:22.000000000 +0200
   1.130 +@@ -5394,7 +5394,7 @@
   1.131 +   ;;
   1.132 + 
   1.133 + # This must be Linux ELF.
   1.134 +-linux-gnu*)
   1.135 ++linux*)
   1.136 +   lt_cv_deplibs_check_method=pass_all
   1.137 +   ;;
   1.138 + 
   1.139 +diff -durN gcc-4.2.1.orig/libobjc/configure gcc-4.2.1/libobjc/configure
   1.140 +--- gcc-4.2.1.orig/libobjc/configure	2006-10-15 09:42:57.000000000 +0200
   1.141 ++++ gcc-4.2.1/libobjc/configure	2007-08-03 20:29:22.000000000 +0200
   1.142 +@@ -3314,7 +3314,7 @@
   1.143 +   ;;
   1.144 + 
   1.145 + # This must be Linux ELF.
   1.146 +-linux-gnu*)
   1.147 ++linux*)
   1.148 +   lt_cv_deplibs_check_method=pass_all
   1.149 +   ;;
   1.150 + 
   1.151 +diff -durN gcc-4.2.1.orig/libssp/configure gcc-4.2.1/libssp/configure
   1.152 +--- gcc-4.2.1.orig/libssp/configure	2006-10-15 09:42:57.000000000 +0200
   1.153 ++++ gcc-4.2.1/libssp/configure	2007-08-03 20:29:22.000000000 +0200
   1.154 +@@ -4480,7 +4480,7 @@
   1.155 +   ;;
   1.156 + 
   1.157 + # This must be Linux ELF.
   1.158 +-linux-gnu*)
   1.159 ++linux*)
   1.160 +   lt_cv_deplibs_check_method=pass_all
   1.161 +   ;;
   1.162 + 
   1.163 +diff -durN gcc-4.2.1.orig/libstdc++-v3/configure gcc-4.2.1/libstdc++-v3/configure
   1.164 +--- gcc-4.2.1.orig/libstdc++-v3/configure	2007-06-29 01:02:05.000000000 +0200
   1.165 ++++ gcc-4.2.1/libstdc++-v3/configure	2007-08-03 20:29:22.000000000 +0200
   1.166 +@@ -4283,7 +4283,7 @@
   1.167 +   ;;
   1.168 + 
   1.169 + # This must be Linux ELF.
   1.170 +-linux-gnu*)
   1.171 ++linux*)
   1.172 +   lt_cv_deplibs_check_method=pass_all
   1.173 +   ;;
   1.174 + 
   1.175 +diff -durN gcc-4.2.1.orig/libtool.m4 gcc-4.2.1/libtool.m4
   1.176 +--- gcc-4.2.1.orig/libtool.m4	2005-07-16 04:30:53.000000000 +0200
   1.177 ++++ gcc-4.2.1/libtool.m4	2007-08-03 20:29:22.000000000 +0200
   1.178 +@@ -739,7 +739,7 @@
   1.179 +   ;;
   1.180 + 
   1.181 + # This must be Linux ELF.
   1.182 +-linux-gnu*)
   1.183 ++linux*)
   1.184 +   lt_cv_deplibs_check_method=pass_all
   1.185 +   ;;
   1.186 + 
   1.187 +diff -durN gcc-4.2.1.orig/ltconfig gcc-4.2.1/ltconfig
   1.188 +--- gcc-4.2.1.orig/ltconfig	2007-02-14 18:08:35.000000000 +0100
   1.189 ++++ gcc-4.2.1/ltconfig	2007-08-03 20:29:22.000000000 +0200
   1.190 +@@ -603,7 +603,7 @@
   1.191 + 
   1.192 + # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   1.193 + case $host_os in
   1.194 +-linux-gnu*) ;;
   1.195 ++linux-gnu*|linux-uclibc*) ;;
   1.196 + linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   1.197 + esac
   1.198 + 
   1.199 +@@ -1251,7 +1251,7 @@
   1.200 +   ;;
   1.201 + 
   1.202 + # This must be Linux ELF.
   1.203 +-linux-gnu*)
   1.204 ++linux*)
   1.205 +   version_type=linux
   1.206 +   need_lib_prefix=no
   1.207 +   need_version=no
   1.208 +diff -durN gcc-4.2.1.orig/zlib/configure gcc-4.2.1/zlib/configure
   1.209 +--- gcc-4.2.1.orig/zlib/configure	2007-01-17 19:10:26.000000000 +0100
   1.210 ++++ gcc-4.2.1/zlib/configure	2007-08-03 20:29:22.000000000 +0200
   1.211 +@@ -3429,7 +3429,7 @@
   1.212 +   ;;
   1.213 + 
   1.214 + # This must be Linux ELF.
   1.215 +-linux-gnu*)
   1.216 ++linux*)
   1.217 +   lt_cv_deplibs_check_method=pass_all
   1.218 +   ;;
   1.219 +