OSDN Git Service

> 2005-06-02 Steven Bosscher <stevenb@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / config.host
index 9024ec1..dbbf5b1 100644 (file)
@@ -85,6 +85,15 @@ case ${host} in
     ;;
 esac
 
+# Common parts for widely ported systems.
+case ${target} in
+  *-darwin*)
+    # Generic darwin host support.
+    out_host_hook_obj=host-darwin.o
+    host_xmake_file=x-darwin
+    ;;
+esac
+
 # Machine-specific settings.
 case ${host} in
   alpha*-dec-*vms*)
@@ -146,13 +155,14 @@ case ${host} in
     ;;
   i[34567]86-*-pe | i[34567]86-*-cygwin*)
     host_xm_file=i386/xm-cygwin.h
+    out_host_hook_obj=host-cygwin.o
+    host_xmake_file=i386/x-cygwin
     host_exeext=.exe
     ;;
   i[34567]86-*-mingw32*)
     host_xm_file=i386/xm-mingw32.h
     host_xmake_file=i386/x-mingw32
     host_exeext=.exe
-    host_can_use_collect2=no
     out_host_hook_obj=host-mingw32.o
     ;;
   i[34567]86-*-uwin*)
@@ -163,6 +173,10 @@ case ${host} in
   i[34567]86-*-interix3*)
     host_xmake_file="x-interix"
     ;;
+  i[34567]86-*-darwin*)
+    out_host_hook_obj="${out_host_hook_obj} host-i386-darwin.o"
+    host_xmake_file="${host_xmake_file} i386/x-darwin"
+    ;;
   i860-*-sysv4*)
     host_xmake_file=i860/x-sysv4
     ;;
@@ -170,9 +184,8 @@ case ${host} in
     host_can_use_collect2=no
     ;;
   powerpc-*-darwin*)
-    # powerpc-darwin host support.
-    out_host_hook_obj=host-darwin.o
-    host_xmake_file=rs6000/x-darwin
+    out_host_hook_obj="${out_host_hook_obj} host-ppc-darwin.o"
+    host_xmake_file="${host_xmake_file} rs6000/x-darwin"
     ;;
   *-*-solaris2*)
     out_host_hook_obj=host-solaris.o