aboutsummaryrefslogtreecommitdiff
path: root/recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch
diff options
context:
space:
mode:
authorKen Werner <ken.werner@linaro.org>2012-05-11 15:03:52 +0200
committerKen Werner <ken.werner@linaro.org>2012-05-11 15:03:52 +0200
commit8d6cfe7058e06ce4b01ed9d9ac52c0a8dc304e46 (patch)
treecbd9b53729f153ac3ca8645fd765af539beb20d3 /recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch
parentba4a243dea9e9e9d4bddfa14af53eb6f7761a60b (diff)
Backport of the GCC 4.7 support from oe-core master
This changeset adds support for GCC 4.7 based toolchains to meta-linaro. It is based of the following original patches to openembedded-core by Khem Raj: commit 0e904103e9bd7fdb31bfcc129067511f9f45701b commit 7cf9f0597648c0bdaa080976d74acfbfc4c8443d commit 7159dad19f8cfd3e7e95523da63e91370744da7f commit 3f8fee75e598ad0994acc5da0a612e6eca4f35f6 commit 149a9911a00c79475d00382dcc384f355fbcdd02 commit 573949096d51bde4961b2301c20c966c324a66bd commit 2f7ac32b57e047cdaf01e0b6f77509117dbbd14c commit b98fb95c594117d165a31795b6fa7b6cb583d598 commit 523df15bcc21e1749771cca757613f3520243b8e commit a84c097cc7c52a856601e546880440d9375b0e30 commit 2bcc03b6787d4bb0731c047bf25c945228136e5f commit 3c9f7eb2e2d70869a71a584eb1ba670b50a88379 commit fe32e09ccbef3a9896955e8d4c3113c53f95de48 commit 11cbd871e0969931d5c81ec53684446f4293faf1 commit e2ce49ca28fe7f6054406bc276a3402cfc04f545 Signed-off-by: Ken Werner <ken.werner@linaro.org>
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch')
-rw-r--r--recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch b/recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch
new file mode 100644
index 00000000..b2981e07
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-4.7/100-uclibc-conf.patch
@@ -0,0 +1,39 @@
+Upstream-Status: Pending
+
+Index: gcc-4.6.0/contrib/regression/objs-gcc.sh
+===================================================================
+--- gcc-4.6.0.orig/contrib/regression/objs-gcc.sh
++++ gcc-4.6.0/contrib/regression/objs-gcc.sh
+@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
+ then
+ make all-gdb all-dejagnu all-ld || exit 1
+ make install-gdb install-dejagnu install-ld || exit 1
++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
++ then
++ make all-gdb all-dejagnu all-ld || exit 1
++ make install-gdb install-dejagnu install-ld || exit 1
+ elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
+ make bootstrap || exit 1
+ make install || exit 1
+Index: gcc-4.6.0/libjava/classpath/ltconfig
+===================================================================
+--- gcc-4.6.0.orig/libjava/classpath/ltconfig
++++ gcc-4.6.0/libjava/classpath/ltconfig
+@@ -603,7 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
+
+ # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+ case $host_os in
+-linux-gnu*) ;;
++linux-gnu*|linux-uclibc*) ;;
+ linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ esac
+
+@@ -1247,7 +1247,7 @@ linux-gnuoldld* | linux-gnuaout* | linux
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no