diff --git a/make/common/MakeBase.gmk b/make/common/MakeBase.gmk index 483a054b009..3c86f303b17 100644 --- a/make/common/MakeBase.gmk +++ b/make/common/MakeBase.gmk @@ -500,20 +500,20 @@ ifeq ($(OPENJDK_TARGET_OS),solaris) # so we fall back on regular copy, which isn't preserving symlinks. define install-file $(call MakeDir, $(@D)) - $(RM) "$(call DecodeSpace, $@)" - if [ "$(call DecodeSpace, $(dir $@))" != \ - "$(call DecodeSpace, $(dir $(call EncodeSpace, $<)))" ]; then \ - $(CP) -f -r -P "$(call DecodeSpace, $<)" "$(call DecodeSpace, $(@D))"; \ - if [ "$(call DecodeSpace, $(@F))" != \ - "$(call DecodeSpace, $(notdir $(call EncodeSpace, $(<))))" ]; then \ - $(MV) "$(call DecodeSpace, $(@D)/$(