7058133: Javah should use the freshly built classes instead of those from the BOOTDIR jdk
Summary: Changed javah to use the newly built classes specified by $(CLASSDESTDIR)
Reviewed-by: vinnie
diff --git a/make/sun/security/ec/Makefile b/make/sun/security/ec/Makefile
index b0d4090..e7b6315 100644
--- a/make/sun/security/ec/Makefile
+++ b/make/sun/security/ec/Makefile
@@ -156,7 +156,7 @@
$(PKGDIR)/ECDSASignature.java \
$(PKGDIR)/ECKeyPairGenerator.java
- JAVAHFLAGS += -classpath $(CLASSDESTDIR)
+ JAVAHFLAGS += -Xbootclasspath/p:$(CLASSDESTDIR)
#
# C and C++ files
diff --git a/make/sun/security/mscapi/Makefile b/make/sun/security/mscapi/Makefile
index d19db5c..405941f 100644
--- a/make/sun/security/mscapi/Makefile
+++ b/make/sun/security/mscapi/Makefile
@@ -149,7 +149,7 @@
# Rules
#
CLASSDESTDIR = $(TEMPDIR)/classes
-JAVAHFLAGS += -classpath $(CLASSDESTDIR)
+JAVAHFLAGS += -Xbootclasspath/p:$(CLASSDESTDIR)
include $(BUILDDIR)/common/Mapfile-vers.gmk