--- a/hotspot/make/solaris/makefiles/sparcWorks.make Fri Apr 11 09:56:35 2008 -0400
+++ b/hotspot/make/solaris/makefiles/sparcWorks.make Sun Apr 13 17:43:42 2008 -0400
@@ -185,6 +185,12 @@
# no more exceptions
CFLAGS/NOEX=-features=no%except
+
+# avoid compilation problems arising from fact that C++ compiler tries
+# to search for external template definition by just compiling additional
+# source files in th same context
+CFLAGS += -template=no%extdef
+
# Reduce code bloat by reverting back to 5.0 behavior for static initializers
CFLAGS += -features=no%split_init