diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-11-16 19:22:42 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-06-22 07:53:22 +0200 |
commit | 65c27afba3d7287d85818d6a08b6169ebbbdd37b (patch) | |
tree | e22e8f8f5c6975609df6d47a911266887fb9ec19 /patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch | |
parent | 08b2c355cfd49ca3037619dece7119c80b47863d (diff) | |
download | OSELAS.Toolchain-65c27afba3d7287d85818d6a08b6169ebbbdd37b.tar.gz OSELAS.Toolchain-65c27afba3d7287d85818d6a08b6169ebbbdd37b.tar.xz |
gcc-5.4.0 patches
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch')
-rw-r--r-- | patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch b/patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch new file mode 100644 index 0000000..c18364b --- /dev/null +++ b/patches/gcc-5.4.0/0300-also-match-uclibc-when-checking-host-os.patch @@ -0,0 +1,49 @@ +From: Robert Schwebel <r.schwebel@pengutronix.de> +Date: Tue, 1 Nov 2011 18:25:07 +0100 +Subject: [PATCH] also match uclibc when checking host os + +This patch was taken from uclibc. + +Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> +--- + contrib/regression/objs-gcc.sh | 4 ++++ + libjava/classpath/ltconfig | 4 ++-- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/contrib/regression/objs-gcc.sh b/contrib/regression/objs-gcc.sh +index 60b0497fea24..6dc7eadff360 100755 +--- a/contrib/regression/objs-gcc.sh ++++ b/contrib/regression/objs-gcc.sh +@@ -106,6 +106,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-gnu ] + 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 +diff --git a/libjava/classpath/ltconfig b/libjava/classpath/ltconfig +index 743d95135fb8..ae4ea6095cdd 100755 +--- a/libjava/classpath/ltconfig ++++ b/libjava/classpath/ltconfig +@@ -603,7 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + # 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-gnucoff*) + ;; + + # This must be Linux ELF. +-linux-gnu*) ++linux*) + version_type=linux + need_lib_prefix=no + need_version=no |