patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-configure.patch

Add the full crosstool-NG sources to the new repository of its own.
You might just say: ‘Yeah! crosstool-NG’s got its own repo!”.
Unfortunately, that’s because the previous repo got damaged beyond repair and I had no backup.
That means I’m putting backups in place in the afternoon.
That also means we’ve lost history… 🙁

1

 Fixes

2

 checking version of powerpc-405-linux-gnu-gcc ... 4.0.0, bad

3

 checking for gnumake... no

4

 checking for gmake... no

5

 checking for make... make

6

 checking version of make... 3.80, ok

7

 configure: error:

8

 *** These critical programs are missing or too old:gcc 

11

 --- glibc-2.2.5/configure.old	2005-03-10 00:23:46.374213600 -0800

12

 +++ glibc-2.2.5/configure	2005-03-10 00:25:13.313996744 -0800

13

 @@ -1476,7 +1476,7 @@

14

    ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`

15

    case $ac_prog_version in

16

      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;

17

 -    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)

18

 +    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|4.0*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)

19

         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;

20

      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

本文出自:https://www.jianshu.com/p/e5fb1b5c0957