7163471: Licensee source bundle failed around 7u4
authornloodin
Tue, 05 Jun 2012 13:43:39 +0200
changeset 12880 1062b2cf73d0
parent 12879 59547faaa927
child 12881 f91298d1637d
7163471: Licensee source bundle failed around 7u4 Reviewed-by: dholmes, sla, brutisso, erikj
jdk/make/com/oracle/Makefile
--- a/jdk/make/com/oracle/Makefile	Thu Jun 07 12:31:45 2012 +0100
+++ b/jdk/make/com/oracle/Makefile	Tue Jun 05 13:43:39 2012 +0200
@@ -30,6 +30,22 @@
 #SUBDIRS_MAKEFLAGS += JAVAC_LINT_OPTIONS=-Xlint:all,-deprecation,-path
 include $(BUILDDIR)/common/Defs.gmk
 
+JFR_SRCDIRS_EXIST := $(shell \
+  if [ -d $(CLOSED_SHARE_SRC)/native/oracle/jfr ] ; then \
+    echo true; \
+  else \
+    echo false; \
+  fi)
+
+JFR =
+ifndef OPENJDK
+  ifndef JAVASE_EMBEDDED
+    ifeq ($(JFR_SRCDIRS_EXIST), true)
+      JFR = jfr
+    endif
+  endif
+endif
+
 # build com/oracle/security/ucrypto on Solaris platform for non-OpenJDK builds
 UCRYPTO =
 ifndef OPENJDK
@@ -38,13 +54,6 @@
   endif
 endif
 
-JFR =
-ifndef OPENJDK
-ifndef JAVASE_EMBEDDED
-	JFR = jfr
-endif
-endif
-
 SUBDIRS = $(JFR) net nio util $(UCRYPTO)
 
 include $(BUILDDIR)/common/Subdirs.gmk