Skip to content

Commit

Permalink
Export VS library when building OpenJCEPlus
Browse files Browse the repository at this point in the history
This commit fixes the “cannot open file 'LIBCMT.lib’” issue
when compiling the OpenJCEPlus native codes with Semeru on
Windows platform.

Signed-off-by: Tao Liu <tao.liu@ibm.com>
  • Loading branch information
taoliult committed Sep 3, 2024
1 parent a5eaaca commit 383f4d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions closed/make/modules/openjceplus/Lib.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ 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
Expand All @@ -47,6 +48,7 @@ else ifeq ($(call isTargetOs, windows), true)
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

Expand All @@ -59,6 +61,7 @@ endif # OPENJCEPLUS_JGSKIT_PLATFORM
compile-libs :
@$(ECHO) Compiling OpenJCEPlus native code
export \
$(OPENJCEPLUS_VS_LIB) \
GSKIT_HOME=$(OPENJCEPLUS_GSKIT_HOME) \
JAVA_HOME=$(OPENJCEPLUS_BOOT_JDK) \
JCE_CLASSPATH=$(OPENJCEPLUS_JCE_CLASSPATH) \
Expand Down

0 comments on commit 383f4d0

Please sign in to comment.