8229334: JPackager .exe packages cannot be executed due to missing DL
Submitted-by: asemenyuk
Reviewed-by: herrick, almatvee
--- a/make/lib/Lib-jdk.jpackage.gmk Thu Aug 08 17:27:17 2019 -0400
+++ b/make/lib/Lib-jdk.jpackage.gmk Sat Aug 10 07:33:52 2019 -0400
@@ -88,7 +88,7 @@
SRC := $(TOPDIR)/src/jdk.jpackage/$(OPENJDK_TARGET_OS)/native/msiwrapper, \
EXTRA_FILES := $(addprefix $(TOPDIR)/src/jdk.jpackage/$(OPENJDK_TARGET_OS)/native/libjpackage/, \
FileUtils.cpp Log.cpp WinSysInfo.cpp tstrings.cpp WinErrorHandling.cpp ErrorHandling.cpp), \
- CFLAGS := $(CXXFLAGS_JDKEXE) \
+ CFLAGS := $(CXXFLAGS_JDKEXE) -MT \
$(addprefix -I$(TOPDIR)/src/jdk.jpackage/$(OPENJDK_TARGET_OS)/native/, msiwrapper libjpackage), \
CFLAGS_windows := -EHsc -DUNICODE -D_UNICODE, \
LDFLAGS := $(LDFLAGS_JDKEXE), \