patches/binutils/2.20.1a/120-sh-targets.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
parent 2088 4f21ba5f8e91
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
     1 
     2 
     3 diff -durN binutils-2.20.1.orig/configure binutils-2.20.1/configure
     4 --- binutils-2.20.1.orig/configure	2010-08-17 19:32:05.000000000 +0200
     5 +++ binutils-2.20.1/configure	2010-08-17 19:32:07.000000000 +0200
     6 @@ -3054,7 +3054,7 @@
     7    am33_2.0-*-linux*)
     8      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
     9      ;;
    10 -  sh-*-linux*)
    11 +  sh*-*-linux*)
    12      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    13      ;;
    14    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    15 @@ -3390,7 +3390,7 @@
    16    romp-*-*)
    17      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    18      ;;
    19 -  sh-*-* | sh64-*-*)
    20 +  sh*-*-* | sh64-*-*)
    21      case "${host}" in
    22        i[3456789]86-*-vsta) ;; # don't add gprof back in
    23        i[3456789]86-*-go32*) ;; # don't add gprof back in
    24 diff -durN binutils-2.20.1.orig/configure.ac binutils-2.20.1/configure.ac
    25 --- binutils-2.20.1.orig/configure.ac	2010-03-03 15:19:08.000000000 +0100
    26 +++ binutils-2.20.1/configure.ac	2010-08-17 19:32:07.000000000 +0200
    27 @@ -541,7 +541,7 @@
    28    am33_2.0-*-linux*)
    29      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    30      ;;
    31 -  sh-*-linux*)
    32 +  sh*-*-linux*)
    33      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    34      ;;    
    35    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    36 @@ -877,7 +877,7 @@
    37    romp-*-*)
    38      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    39      ;;
    40 -  sh-*-* | sh64-*-*)
    41 +  sh*-*-* | sh64-*-*)
    42      case "${host}" in
    43        i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    44        i[[3456789]]86-*-go32*) ;; # don't add gprof back in