jdk/test/Makefile
changeset 12047 320a714614e9
parent 11910 5ebe67376f05
child 12887 582f5a8047e9
--- a/jdk/test/Makefile	Tue Mar 06 10:25:45 2012 +0800
+++ b/jdk/test/Makefile	Tue Mar 06 20:34:38 2012 +0000
@@ -79,6 +79,15 @@
   endif
   OS_VERSION := $(shell $(UNAME) -r)
 endif
+ifeq ($(UNAME_S), Darwin)
+  OS_NAME     = macosx
+  OS_ARCH    := $(shell $(UNAME) -m)
+  # Check for unknown arch, try uname -p if uname -m says unknown
+  ifeq ($(OS_ARCH),unknown)
+    OS_ARCH    := $(shell $(UNAME) -p)
+  endif
+  OS_VERSION := $(shell $(UNAME) -r)
+endif
 ifeq ($(OS_NAME),)
   OS_NAME = windows
   # GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always