patches/binutils/2.19.1a/120-sh-targets.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Jul 31 22:27:29 2012 +0200 (2012-07-31)
changeset 3018 7776e8369284
parent 1243 5d15872659ec
permissions -rw-r--r--
complibs/cloog: create missing m4 dir

Because we now patch configure.in and configure, the Makefile quicks
in a re-build rule as the source files are now more recent than the
bundled generated files, and that fails because the m4 directory
is missing, although on some systems where aclocal is not installed,
the re-build rule does nothing (except a warning).

Always create tht directory.

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