diff -r 9c1709c4c80c -r d1b0644d6acf make/solaris/makefiles/add_gnu_debuglink.make --- a/make/solaris/makefiles/add_gnu_debuglink.make Thu May 24 12:03:42 2012 -0700 +++ b/make/solaris/makefiles/add_gnu_debuglink.make Wed Jun 20 14:18:25 2012 -0700 @@ -24,8 +24,11 @@ # Rules to build add_gnu_debuglink, used by vm.make on Solaris -GENERATED = ../generated -ADD_GNU_DEBUGLINK = $(GENERATED)/add_gnu_debuglink +# Allow $(ADD_GNU_DEBUGLINK) to be called from any directory. +# We don't set or use the GENERATED macro to avoid affecting +# other HotSpot Makefiles. +TOPDIR = $(shell echo `pwd`) +ADD_GNU_DEBUGLINK = $(TOPDIR)/../generated/add_gnu_debuglink ADD_GNU_DEBUGLINK_DIR = $(GAMMADIR)/src/os/solaris/add_gnu_debuglink ADD_GNU_DEBUGLINK_SRC = $(ADD_GNU_DEBUGLINK_DIR)/add_gnu_debuglink.c