S390: Clean up cross-compile for S390.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Sat, 25 Jul 2015 18:34:15 +0000 (18:34 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Sat, 25 Jul 2015 18:34:15 +0000 (18:34 +0000)
gcc/ChangeLog

* config.host (s390*-*-*): Include driver-native.c only when
building with s390* as host *and* target.

From-SVN: r226223

gcc/ChangeLog
gcc/config.host

index 37b0ded42be8c063f1034cead2363daefa1acc99..fad36e27a8885e651c5c9d2c8dd4fa0268af855f 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
+
+       * config.host (s390*-*-*): Include driver-native.c only when
+       building with s390* as host *and* target.
+
 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
 
        PR target/66930
index 4e456a1b5390ad451d298e0c758925b133725490..3f7d5947f7c23f0c80d660aa9def2f9e3f2204bf 100644 (file)
@@ -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