6997210: Solaris 11 has no development support for DGA: Cannot build JDK
authorprr
Fri, 24 Dec 2010 09:31:32 -0800
changeset 7760 594daec0930a
parent 7759 2e1579882018
child 7761 bada7677e624
6997210: Solaris 11 has no development support for DGA: Cannot build JDK Reviewed-by: bae, ohair
jdk/make/sun/Makefile
--- a/jdk/make/sun/Makefile	Fri Dec 24 14:05:42 2010 +0300
+++ b/jdk/make/sun/Makefile	Fri Dec 24 09:31:32 2010 -0800
@@ -42,7 +42,15 @@
   ifndef OPENJDK
     ifeq ($(PLATFORM), solaris)
       ifneq ($(ARCH), amd64)
-        DGA_SUBDIR = jdga
+        # Solaris 11 does not have support for new compilation of DGA code.
+        OS_VERSION = $(shell uname -r)
+        OS_MAJOR_VERSION := $(call MajorVersion,$(OS_VERSION))
+        OS_MINOR_VERSION := $(call MinorVersion,$(OS_VERSION))
+        ifeq ($(shell $(EXPR) $(OS_MAJOR_VERSION) == 5), 1)
+          ifeq ($(shell $(EXPR) $(OS_MINOR_VERSION) \<= 10), 1)
+            DGA_SUBDIR = jdga
+          endif
+        endif
       endif
     endif
   endif