hotspot/make/bsd/makefiles/sparcWorks.make
changeset 11955 aeca8151886e
parent 11721 dcd1f62c9caf
child 13963 e5b53c306fb5
--- a/hotspot/make/bsd/makefiles/sparcWorks.make	Wed Feb 22 10:32:29 2012 -0800
+++ b/hotspot/make/bsd/makefiles/sparcWorks.make	Wed Feb 22 09:24:35 2012 +0100
@@ -25,12 +25,15 @@
 #------------------------------------------------------------------------
 # CC, CXX & AS
 
-CXX = CC
-CC  = cc
-AS  = $(CC) -c
+# If a SPEC is not set already, then use these defaults.
+ifeq ($(SPEC),)
+  CXX = CC
+  CC  = cc
+  AS  = $(CC) -c
 
-HOSTCXX = $(CXX)
-HOSTCC  = $(CC)
+  HOSTCXX = $(CXX)
+  HOSTCC  = $(CC)
+endif
 
 ARCHFLAG = $(ARCHFLAG/$(BUILDARCH))
 ARCHFLAG/i486    = -m32