jdk/makefiles/CopyFiles.gmk
changeset 15340 b498be4dc7ff
parent 15148 7dc6d15b4380
child 15341 cfe93cb07f19
--- a/jdk/makefiles/CopyFiles.gmk	Wed Jul 05 18:37:13 2017 +0200
+++ b/jdk/makefiles/CopyFiles.gmk	Tue Jan 29 16:35:24 2013 +0100
@@ -267,10 +267,12 @@
 
 ifeq ($(OPENJDK_TARGET_OS),windows)
     MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
+    # Chmod to avoid permission issues if bundles are unpacked on unix platforms.
     $(MSVCR_TARGET): $(MSVCR_DLL)
 	$(MKDIR) -p $(@D)
 	$(RM) $@
 	$(CP) $< $@
+	$(CHMOD) a+rx $@
 
     COPY_FILES += $(MSVCR_TARGET)
 endif