patches/gcc/4.2.3/100-uclibc-conf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 12 19:24:03 2010 +0100 (2010-01-12)
changeset 1761 88020b2c3246
parent 313 2f223aafc7cb
permissions -rw-r--r--
scripts/functions: change handling of nochdir

- 'nochdir' must be the first option
- have systematic pushd/popd, even if nochdir
     1 diff -durN gcc-4.2.1.orig/boehm-gc/configure gcc-4.2.1/boehm-gc/configure
     2 --- gcc-4.2.1.orig/boehm-gc/configure	2007-07-19 16:33:56.000000000 +0200
     3 +++ gcc-4.2.1/boehm-gc/configure	2007-08-03 20:29:22.000000000 +0200
     4 @@ -4323,7 +4323,7 @@
     5    ;;
     6  
     7  # This must be Linux ELF.
     8 -linux-gnu*)
     9 +linux*)
    10    lt_cv_deplibs_check_method=pass_all
    11    ;;
    12  
    13 diff -durN gcc-4.2.1.orig/contrib/regression/objs-gcc.sh gcc-4.2.1/contrib/regression/objs-gcc.sh
    14 --- gcc-4.2.1.orig/contrib/regression/objs-gcc.sh	2005-08-15 02:41:31.000000000 +0200
    15 +++ gcc-4.2.1/contrib/regression/objs-gcc.sh	2007-08-03 20:29:22.000000000 +0200
    16 @@ -105,6 +105,10 @@
    17   then
    18    make all-gdb all-dejagnu all-ld || exit 1
    19    make install-gdb install-dejagnu install-ld || exit 1
    20 +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
    21 + then
    22 +  make all-gdb all-dejagnu all-ld || exit 1
    23 +  make install-gdb install-dejagnu install-ld || exit 1
    24  elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
    25    make bootstrap || exit 1
    26    make install || exit 1
    27 diff -durN gcc-4.2.1.orig/gcc/config/cris/linux.h gcc-4.2.1/gcc/config/cris/linux.h
    28 --- gcc-4.2.1.orig/gcc/config/cris/linux.h	2006-02-18 12:12:51.000000000 +0100
    29 +++ gcc-4.2.1/gcc/config/cris/linux.h	2007-08-03 20:29:22.000000000 +0200
    30 @@ -74,7 +74,11 @@
    31  #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
    32  
    33  #undef CRIS_SUBTARGET_VERSION
    34 -#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
    35 +#if UCLIBC_DEFAULT
    36 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
    37 +#else
    38 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
    39 +#endif
    40  
    41  #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
    42  
    43 diff -durN gcc-4.2.1.orig/libffi/configure gcc-4.2.1/libffi/configure
    44 --- gcc-4.2.1.orig/libffi/configure	2007-07-19 16:33:56.000000000 +0200
    45 +++ gcc-4.2.1/libffi/configure	2007-08-03 20:29:22.000000000 +0200
    46 @@ -3460,7 +3460,7 @@
    47    ;;
    48  
    49  # This must be Linux ELF.
    50 -linux-gnu*)
    51 +linux*)
    52    lt_cv_deplibs_check_method=pass_all
    53    ;;
    54  
    55 diff -durN gcc-4.2.1.orig/libgfortran/configure gcc-4.2.1/libgfortran/configure
    56 --- gcc-4.2.1.orig/libgfortran/configure	2007-07-19 16:33:56.000000000 +0200
    57 +++ gcc-4.2.1/libgfortran/configure	2007-08-03 20:29:22.000000000 +0200
    58 @@ -3721,7 +3721,7 @@
    59    ;;
    60  
    61  # This must be Linux ELF.
    62 -linux-gnu*)
    63 +linux*)
    64    lt_cv_deplibs_check_method=pass_all
    65    ;;
    66  
    67 diff -durN gcc-4.2.1.orig/libgomp/configure gcc-4.2.1/libgomp/configure
    68 --- gcc-4.2.1.orig/libgomp/configure	2007-07-19 16:33:56.000000000 +0200
    69 +++ gcc-4.2.1/libgomp/configure	2007-08-03 20:29:22.000000000 +0200
    70 @@ -3893,7 +3893,7 @@
    71    ;;
    72  
    73  # This must be Linux ELF.
    74 -linux-gnu*)
    75 +linux*)
    76    lt_cv_deplibs_check_method=pass_all
    77    ;;
    78  
    79 diff -durN gcc-4.2.1.orig/libjava/classpath/configure gcc-4.2.1/libjava/classpath/configure
    80 --- gcc-4.2.1.orig/libjava/classpath/configure	2007-01-17 19:10:26.000000000 +0100
    81 +++ gcc-4.2.1/libjava/classpath/configure	2007-08-03 20:29:22.000000000 +0200
    82 @@ -5307,7 +5307,7 @@
    83    ;;
    84  
    85  # This must be Linux ELF.
    86 -linux-gnu*)
    87 +linux*)
    88    lt_cv_deplibs_check_method=pass_all
    89    ;;
    90  
    91 diff -durN gcc-4.2.1.orig/libjava/classpath/ltconfig gcc-4.2.1/libjava/classpath/ltconfig
    92 --- gcc-4.2.1.orig/libjava/classpath/ltconfig	2006-08-07 22:37:50.000000000 +0200
    93 +++ gcc-4.2.1/libjava/classpath/ltconfig	2007-08-03 20:29:22.000000000 +0200
    94 @@ -603,7 +603,7 @@
    95  
    96  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    97  case $host_os in
    98 -linux-gnu*) ;;
    99 +linux-gnu*|linux-uclibc*) ;;
   100  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   101  esac
   102  
   103 @@ -1251,7 +1251,7 @@
   104    ;;
   105  
   106  # This must be Linux ELF.
   107 -linux-gnu*)
   108 +linux*)
   109    version_type=linux
   110    need_lib_prefix=no
   111    need_version=no
   112 diff -durN gcc-4.2.1.orig/libjava/configure gcc-4.2.1/libjava/configure
   113 --- gcc-4.2.1.orig/libjava/configure	2007-07-19 16:33:56.000000000 +0200
   114 +++ gcc-4.2.1/libjava/configure	2007-08-03 20:29:22.000000000 +0200
   115 @@ -5424,7 +5424,7 @@
   116    ;;
   117  
   118  # This must be Linux ELF.
   119 -linux-gnu*)
   120 +linux*)
   121    lt_cv_deplibs_check_method=pass_all
   122    ;;
   123  
   124 diff -durN gcc-4.2.1.orig/libmudflap/configure gcc-4.2.1/libmudflap/configure
   125 --- gcc-4.2.1.orig/libmudflap/configure	2006-12-04 12:13:07.000000000 +0100
   126 +++ gcc-4.2.1/libmudflap/configure	2007-08-03 20:29:22.000000000 +0200
   127 @@ -5394,7 +5394,7 @@
   128    ;;
   129  
   130  # This must be Linux ELF.
   131 -linux-gnu*)
   132 +linux*)
   133    lt_cv_deplibs_check_method=pass_all
   134    ;;
   135  
   136 diff -durN gcc-4.2.1.orig/libobjc/configure gcc-4.2.1/libobjc/configure
   137 --- gcc-4.2.1.orig/libobjc/configure	2006-10-15 09:42:57.000000000 +0200
   138 +++ gcc-4.2.1/libobjc/configure	2007-08-03 20:29:22.000000000 +0200
   139 @@ -3314,7 +3314,7 @@
   140    ;;
   141  
   142  # This must be Linux ELF.
   143 -linux-gnu*)
   144 +linux*)
   145    lt_cv_deplibs_check_method=pass_all
   146    ;;
   147  
   148 diff -durN gcc-4.2.1.orig/libssp/configure gcc-4.2.1/libssp/configure
   149 --- gcc-4.2.1.orig/libssp/configure	2006-10-15 09:42:57.000000000 +0200
   150 +++ gcc-4.2.1/libssp/configure	2007-08-03 20:29:22.000000000 +0200
   151 @@ -4480,7 +4480,7 @@
   152    ;;
   153  
   154  # This must be Linux ELF.
   155 -linux-gnu*)
   156 +linux*)
   157    lt_cv_deplibs_check_method=pass_all
   158    ;;
   159  
   160 diff -durN gcc-4.2.1.orig/libstdc++-v3/configure gcc-4.2.1/libstdc++-v3/configure
   161 --- gcc-4.2.1.orig/libstdc++-v3/configure	2007-06-29 01:02:05.000000000 +0200
   162 +++ gcc-4.2.1/libstdc++-v3/configure	2007-08-03 20:29:22.000000000 +0200
   163 @@ -4283,7 +4283,7 @@
   164    ;;
   165  
   166  # This must be Linux ELF.
   167 -linux-gnu*)
   168 +linux*)
   169    lt_cv_deplibs_check_method=pass_all
   170    ;;
   171  
   172 diff -durN gcc-4.2.1.orig/libtool.m4 gcc-4.2.1/libtool.m4
   173 --- gcc-4.2.1.orig/libtool.m4	2005-07-16 04:30:53.000000000 +0200
   174 +++ gcc-4.2.1/libtool.m4	2007-08-03 20:29:22.000000000 +0200
   175 @@ -739,7 +739,7 @@
   176    ;;
   177  
   178  # This must be Linux ELF.
   179 -linux-gnu*)
   180 +linux*)
   181    lt_cv_deplibs_check_method=pass_all
   182    ;;
   183  
   184 diff -durN gcc-4.2.1.orig/ltconfig gcc-4.2.1/ltconfig
   185 --- gcc-4.2.1.orig/ltconfig	2007-02-14 18:08:35.000000000 +0100
   186 +++ gcc-4.2.1/ltconfig	2007-08-03 20:29:22.000000000 +0200
   187 @@ -603,7 +603,7 @@
   188  
   189  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   190  case $host_os in
   191 -linux-gnu*) ;;
   192 +linux-gnu*|linux-uclibc*) ;;
   193  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   194  esac
   195  
   196 @@ -1251,7 +1251,7 @@
   197    ;;
   198  
   199  # This must be Linux ELF.
   200 -linux-gnu*)
   201 +linux*)
   202    version_type=linux
   203    need_lib_prefix=no
   204    need_version=no
   205 diff -durN gcc-4.2.1.orig/zlib/configure gcc-4.2.1/zlib/configure
   206 --- gcc-4.2.1.orig/zlib/configure	2007-01-17 19:10:26.000000000 +0100
   207 +++ gcc-4.2.1/zlib/configure	2007-08-03 20:29:22.000000000 +0200
   208 @@ -3429,7 +3429,7 @@
   209    ;;
   210  
   211  # This must be Linux ELF.
   212 -linux-gnu*)
   213 +linux*)
   214    lt_cv_deplibs_check_method=pass_all
   215    ;;
   216