patches/binutils/2.20.1/120-sh-targets.patch
author Titus von Boxberg <titus@v9g.de>
Mon Aug 22 09:41:35 2011 +0200 (2011-08-22)
branch1.12
changeset 2636 d53c6d529923
parent 1621 60446d2e5660
permissions -rw-r--r--
configure: fix --with-prog=[...]

check_for didn't set variable 'where' when the path to a prog
was passed manually "(cached)".

Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
(transplanted from b1be254591e7b524a0b06a2247a9331ebe0faf1d)
     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