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