patches/glibc/2.9/600-recent-binutils.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
parent 1654 489e9f2158fa
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 diff -durN glibc-2.9.orig/configure glibc-2.9/configure
     2 --- glibc-2.9.orig/configure	2010-05-18 23:47:23.000000000 +0200
     3 +++ glibc-2.9/configure	2010-05-18 23:50:04.000000000 +0200
     4 @@ -4534,7 +4534,7 @@
     5    ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
     6    case $ac_prog_version in
     7      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
     8 -    2.1[3-9]*)
     9 +    2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
    10         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
    11      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
    12  
    13 @@ -4597,7 +4597,7 @@
    14    ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
    15    case $ac_prog_version in
    16      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
    17 -    2.1[3-9]*)
    18 +    2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
    19         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
    20      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
    21  
    22 diff -durN glibc-2.9.orig/configure.in glibc-2.9/configure.in
    23 --- glibc-2.9.orig/configure.in	2010-05-18 23:47:23.000000000 +0200
    24 +++ glibc-2.9/configure.in	2010-05-18 23:51:25.000000000 +0200
    25 @@ -844,10 +844,10 @@
    26  # Accept binutils 2.13 or newer.
    27  AC_CHECK_PROG_VER(AS, $AS, --version,
    28  		  [GNU assembler.* \([0-9]*\.[0-9.]*\)],
    29 -		  [2.1[3-9]*], AS=: critic_missing="$critic_missing as")
    30 +		  [2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*], AS=: critic_missing="$critic_missing as")
    31  AC_CHECK_PROG_VER(LD, $LD, --version,
    32  		  [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)],
    33 -		  [2.1[3-9]*], LD=: critic_missing="$critic_missing ld")
    34 +		  [2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*], LD=: critic_missing="$critic_missing ld")
    35  
    36  # We need the physical current working directory.  We cannot use the
    37  # "pwd -P" shell builtin since that's not portable.  Instead we try to