From 97fc6cb4fae408072ce23997b40fbc30ed303a8e Mon Sep 17 00:00:00 2001 From: Volker Simonis Date: Wed, 29 Oct 2014 14:51:51 +0100 Subject: [PATCH] 8062312: OpenJDK build fails when bundling freetype libraries Reviewed-by: prr, erikj --- jdk/make/copy/Copy-java.desktop.gmk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jdk/make/copy/Copy-java.desktop.gmk b/jdk/make/copy/Copy-java.desktop.gmk index 13658ca2a8a..b3fd662bf9c 100644 --- a/jdk/make/copy/Copy-java.desktop.gmk +++ b/jdk/make/copy/Copy-java.desktop.gmk @@ -67,8 +67,11 @@ ifneq ($(FREETYPE_BUNDLE_LIB_PATH), ) FREETYPE_TARGET_LIB := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/$(call SHARED_LIBRARY,freetype).6 endif + # We can't use $(install-file) in this rule because it preserves symbolic links and + # libfreetype.so is usually a symbolic link to something like libfreetype.so.6 on Unix. $(FREETYPE_TARGET_LIB): $(FREETYPE_BUNDLE_LIB_PATH)/$(call SHARED_LIBRARY,freetype) - $(install-file) + $(MKDIR) -p $(@D) + $(CP) $< $@ ifeq ($(OPENJDK_BUILD_OS), windows) $(CHMOD) +rx $@ endif