8220784: hsdis cannot be built with MinGW64
authorysuenaga
Thu, 21 Mar 2019 21:17:54 +0900
changeset 54212 ed40b61fed96
parent 54211 67c58bd66e82
child 54213 d8d45286ffa9
8220784: hsdis cannot be built with MinGW64 Reviewed-by: iklam, dholmes
src/utils/hsdis/Makefile
--- a/src/utils/hsdis/Makefile	Thu Mar 21 04:55:20 2019 -0400
+++ b/src/utils/hsdis/Makefile	Thu Mar 21 21:17:54 2019 +0900
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # The Universal Permissive License (UPL), Version 1.0
@@ -201,6 +201,10 @@
 		$(TARGET_DIR)/opcodes/libopcodes.a \
 		$(TARGET_DIR)/libiberty/libiberty.a
 
+ifneq ($(MINGW),)
+LIBRARIES +=	$(TARGET_DIR)/zlib/libz.a
+endif
+
 DEMO_TARGET	= $(TARGET_DIR)/hsdis-demo
 DEMO_SOURCE	= hsdis-demo.c