patches/binutils/2.19.1/120-sh-targets.patch
author Remy Bohmer <linux@bohmer.net>
Sun Jul 11 22:23:34 2010 +0200 (2010-07-11)
changeset 2021 3e52a1510f87
permissions -rw-r--r--
debug/gdb: Fix compilation for Mingw hosts

GDB requires PDcurses instead of ncurses while running on Windows.
So, do not always compile ncurses in case GDB needs to build.

PDcurses is provided by an earlier build step and is not described in
this file.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
[yann.morin.1998@anciense.nib.fr: we already have a way to detect ncurses usage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.19/120-sh-targets.patch
     2 
     3 -= BEGIN original header =-
     4 Original patch from Gentoo:
     5 gentoo/src/patchsets/binutils/2.19/12_all_sh-targets.patch
     6 
     7 r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines
     8 
     9 Likewise, binutils has no idea about any of these new targets either, so we
    10 fix that up too.. now we're able to actually build a real toolchain for
    11 sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more
    12 inept targets than that one, really. Go look, I promise).
    13 
    14 -= END original header =-
    15 
    16 diff -durN binutils-2.19.1.orig/configure binutils-2.19.1/configure
    17 --- binutils-2.19.1.orig/configure	2009-03-08 11:57:00.000000000 +0100
    18 +++ binutils-2.19.1/configure	2009-03-08 11:57:00.000000000 +0100
    19 @@ -2281,7 +2281,7 @@
    20    am33_2.0-*-linux*)
    21      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    22      ;;
    23 -  sh-*-linux*)
    24 +  sh*-*-linux*)
    25      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    26      ;;
    27    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    28 @@ -2606,7 +2606,7 @@
    29    romp-*-*)
    30      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    31      ;;
    32 -  sh-*-* | sh64-*-*)
    33 +  sh*-*-* | sh64-*-*)
    34      case "${host}" in
    35        i[3456789]86-*-vsta) ;; # don't add gprof back in
    36        i[3456789]86-*-go32*) ;; # don't add gprof back in
    37 diff -durN binutils-2.19.1.orig/configure.ac binutils-2.19.1/configure.ac
    38 --- binutils-2.19.1.orig/configure.ac	2009-02-02 12:54:49.000000000 +0100
    39 +++ binutils-2.19.1/configure.ac	2009-03-08 11:57:00.000000000 +0100
    40 @@ -530,7 +530,7 @@
    41    am33_2.0-*-linux*)
    42      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    43      ;;
    44 -  sh-*-linux*)
    45 +  sh*-*-linux*)
    46      noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
    47      ;;    
    48    sh*-*-pe|mips*-*-pe|*arm-wince-pe)
    49 @@ -855,7 +855,7 @@
    50    romp-*-*)
    51      noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
    52      ;;
    53 -  sh-*-* | sh64-*-*)
    54 +  sh*-*-* | sh64-*-*)
    55      case "${host}" in
    56        i[[3456789]]86-*-vsta) ;; # don't add gprof back in
    57        i[[3456789]]86-*-go32*) ;; # don't add gprof back in