patches/binutils/2.20.1/120-sh-targets.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Jan 26 00:04:41 2011 +0100 (2011-01-26)
branch1.9
changeset 2291 075510bba768
parent 1621 60446d2e5660
permissions -rw-r--r--
libc/mingw: do not remove support symlink

Under mingw, it seems that there is a mix between the traditional /usr
directory, and a similar-purposed /mingw directory (both in the sysroot).

Currently, we create /mingw as a symlink to /usr, and we removed it in
the libc-finish step.

Unfortunately, this prevents the pre-processor to find the headers.
Keeping the symlink makes it magically work...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from fa5c70b11fecf390c78780fe8f8ba0a836a59e92)
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