changeset 14053:f15b3ddc5024

8235687: Contents/MacOS/libjli.dylib cannot be a symlink Reviewed-by: tbell
author erikj
date Thu, 12 Dec 2019 19:35:57 +0000
parents f14054bf7742
children db9fc4b93cfe
files make/Bundles.gmk
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/make/Bundles.gmk	Fri Apr 20 09:44:45 2018 -0700
+++ b/make/Bundles.gmk	Thu Dec 12 19:35:57 2019 +0000
@@ -89,16 +89,16 @@
 	if [ -d "$<" ]; then $(MKDIR) -p $@; else $(CP) -f -R -L '$<' '$@'; fi
 
   $(JDK_BUNDLE_DIR)/MacOS/libjli.dylib:
-	$(ECHO) Creating link $(patsubst $(OUTPUT_ROOT)/%,%,$@)
+	$(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
 	$(MKDIR) -p $(@D)
 	$(RM) $@
-	$(LN) -s ../Home/jre/lib/jli/libjli.dylib $@
+	$(CP) $(JDK_IMAGE_DIR)/jre/lib/jli/libjli.dylib $@
 
   $(JRE_BUNDLE_DIR)/MacOS/libjli.dylib:
-	$(ECHO) Creating link $(patsubst $(OUTPUT_ROOT)/%,%,$@)
+	$(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
 	$(MKDIR) -p $(@D)
 	$(RM) $@
-	$(LN) -s ../Home/lib/jli/libjli.dylib $@
+	$(CP) $(JRE_IMAGE_DIR)/lib/jli/libjli.dylib $@
 
   $(JDK_BUNDLE_DIR)/Info.plist: $(SPEC)
 	$(ECHO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@)