OSDN Git Service

PR objc/21641
[pf3gnuchains/gcc-fork.git] / gcc / config.host
index 64280c9..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*)
@@ -164,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
     ;;
@@ -171,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