The attached patch cleans up cross compilation as discussed here: https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01929.html on top of the fixes that have already been committed; see here: https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01545.html
This is only cleanup work, there is no compile problem at the moment. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany
gcc/ChangeLog * config.hosto_plugin_soname): Include driver-native.c only when building with s390* as host and target.
>From fdf3a1f9ccffdbf89e9b262e657ac77765a6be1f Mon Sep 17 00:00:00 2001 From: Dominik Vogt <v...@linux.vnet.ibm.com> Date: Thu, 23 Jul 2015 14:28:51 +0100 Subject: [PATCH] S390: Clean up cross-compile for S390. --- gcc/config.host | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/config.host b/gcc/config.host index 4e456a1..3f7d594 100644 --- a/gcc/config.host +++ b/gcc/config.host @@ -173,8 +173,12 @@ case ${host} in esac ;; s390-*-* | s390x-*-*) - host_extra_gcc_objs="driver-native.o" - host_xmake_file="${host_xmake_file} s390/x-native" + case ${target} in + s390-*-* | s390x-*-*) + host_extra_gcc_objs="driver-native.o" + host_xmake_file="${host_xmake_file} s390/x-native" + ;; + esac ;; sparc*-*-solaris2*) case ${target} in -- 2.3.0