diff --git a/closed/make/modules/openjceplus/Lib.gmk b/closed/make/modules/openjceplus/Lib.gmk index c8aa3fde21a..921fe161e50 100644 --- a/closed/make/modules/openjceplus/Lib.gmk +++ b/closed/make/modules/openjceplus/Lib.gmk @@ -23,6 +23,7 @@ include LibCommon.gmk ifeq (true,$(BUILD_OPENJCEPLUS)) # Identify the desired JGSKIT target platform. +EXPORT_COMPILER_ENV_VARS := OPENJCEPLUS_JDK := $(JDK_OUTPUTDIR) OPENJCEPLUS_GSKIT_HOME := $(OPENJCEPLUS_TOPDIR)/ock/jgsk_sdk OPENJCEPLUS_HEADER_FILES := $(SUPPORT_OUTPUTDIR)/headers/openjceplus @@ -30,7 +31,6 @@ OPENJCEPLUS_JCE_CLASSPATH := $(JDK_OUTPUTDIR)/modules/openjceplus:$(JDK_OUTPUTDI OPENJCEPLUS_JGSKIT_MAKE := jgskit.mak OPENJCEPLUS_JGSKIT_MAKE_PATH := $(OPENJCEPLUS_TOPDIR)/src/main/native OPENJCEPLUS_JGSKIT_PLATFORM := -OPENJCEPLUS_VS_LIB := ifeq ($(call isTargetOs, aix), true) OPENJCEPLUS_JGSKIT_PLATFORM := ppc-aix64 @@ -44,13 +44,13 @@ else ifeq ($(call isTargetOs, linux), true) endif else ifeq ($(call isTargetOs, windows), true) ifeq ($(call isTargetCpu, x86_64), true) + EXPORT_COMPILER_ENV_VARS := LIB='$(OPENJ9_VS_LIB)' OPENJCEPLUS_JDK := $(call MixedPath,$(OPENJCEPLUS_JDK)) OPENJCEPLUS_GSKIT_HOME := $(call MixedPath,$(OPENJCEPLUS_GSKIT_HOME)) OPENJCEPLUS_HEADER_FILES := $(call MixedPath,$(OPENJCEPLUS_HEADER_FILES)) OPENJCEPLUS_JCE_CLASSPATH := "$(call MixedPath,$(JDK_OUTPUTDIR)/modules/openjceplus);$(call MixedPath,$(JDK_OUTPUTDIR)/modules/java.base)" OPENJCEPLUS_JGSKIT_MAKE := jgskit.win64.mak OPENJCEPLUS_JGSKIT_PLATFORM := win64 - OPENJCEPLUS_VS_LIB := LIB='$(OPENJ9_VS_LIB)' endif endif @@ -62,18 +62,18 @@ endif # OPENJCEPLUS_JGSKIT_PLATFORM compile-libs : @$(ECHO) Compiling OpenJCEPlus native code - export \ - GSKIT_HOME=$(OPENJCEPLUS_GSKIT_HOME) \ - JAVA_HOME=$(OPENJCEPLUS_JDK) \ - JCE_CLASSPATH=$(OPENJCEPLUS_JCE_CLASSPATH) \ - $(OPENJCEPLUS_VS_LIB) \ - PLATFORM=$(OPENJCEPLUS_JGSKIT_PLATFORM) \ - && $(MAKE) \ - -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) \ - -f $(OPENJCEPLUS_JGSKIT_MAKE) \ - OPENJCEPLUS_HEADER_FILES=$(OPENJCEPLUS_HEADER_FILES) \ - EXTERNAL_HEADERS=true \ - all + $(EXPORT_COMPILER_ENV_VARS) \ + $(MAKE) \ + -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) \ + -f $(OPENJCEPLUS_JGSKIT_MAKE) \ + EXTERNAL_HEADERS=true \ + GSKIT_HOME=$(OPENJCEPLUS_GSKIT_HOME) \ + JAVA_HOME=$(OPENJCEPLUS_JDK) \ + JCE_CLASSPATH=$(OPENJCEPLUS_JCE_CLASSPATH) \ + OPENJCEPLUS_HEADER_FILES=$(OPENJCEPLUS_HEADER_FILES) \ + $(OPENJCEPLUS_VS_LIB) \ + PLATFORM=$(OPENJCEPLUS_JGSKIT_PLATFORM) \ + all @$(ECHO) OpenJCEplus compile complete TARGETS += compile-libs