diff -r 7e2a683462f9 -r 6acb502beafa common/makefiles/MakeBase.gmk --- a/common/makefiles/MakeBase.gmk Thu Apr 04 09:25:58 2013 +0200 +++ b/common/makefiles/MakeBase.gmk Fri Apr 05 09:38:54 2013 +0200 @@ -374,15 +374,24 @@ ifeq ($(OPENJDK_TARGET_OS),solaris) # On Solaris, if the target is a symlink and exists, cp won't overwrite. +# Cp has to operate in recursive mode to allow for -P flag, to preserve soft links. If the +# name of the target file differs from the source file, rename after copy. define install-file $(MKDIR) -p $(@D) $(RM) '$@' $(CP) -f -r -P '$<' '$(@D)' + if [ "$(@F)" != "$(