8009196: install doesn't define $(AR) as /usr/ccs/bin/ar, results in ar: Command not found
authorkatleman
Thu, 28 Feb 2013 19:30:43 -0800
changeset 15828 20258a15d3c2
parent 15827 30e856716741
child 15829 72415be10117
8009196: install doesn't define $(AR) as /usr/ccs/bin/ar, results in ar: Command not found Reviewed-by: tbell
jdk/make/common/shared/Defs-utils.gmk
--- a/jdk/make/common/shared/Defs-utils.gmk	Wed Feb 27 13:10:30 2013 -0800
+++ b/jdk/make/common/shared/Defs-utils.gmk	Thu Feb 28 19:30:43 2013 -0800
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -74,24 +74,24 @@
   UTILS_DEVTOOL_PATH=$(DEVTOOLS_PATH)
 endif
 
-ifndef CONFIGURE_BUILD
-  # Utilities
-  ifdef CROSS_COMPILE_ARCH
-    AR             = $(COMPILER_PATH)ar
-    AS             = $(COMPILER_PATH)as
-    LD             = $(COMPILER_PATH)ld
-    MCS            = $(COMPILER_PATH)mcs
-    NM             = $(COMPILER_PATH)nm
-    STRIP          = $(COMPILER_PATH)strip
-  else
-    AR             = $(UTILS_CCS_BIN_PATH)ar
-    AS             = $(UTILS_CCS_BIN_PATH)as
-    LD             = $(UTILS_CCS_BIN_PATH)ld
-    MCS            = $(UTILS_CCS_BIN_PATH)mcs
-    NM             = $(UTILS_CCS_BIN_PATH)nm
-    STRIP          = $(UTILS_CCS_BIN_PATH)strip
-  endif
-endif # CONFIGURE_BUILD
+# Utilities
+ifdef CROSS_COMPILE_ARCH
+  AR             = $(COMPILER_PATH)ar
+  AS             = $(COMPILER_PATH)as
+  LD             = $(COMPILER_PATH)ld
+  MCS            = $(COMPILER_PATH)mcs
+  NM             = $(COMPILER_PATH)nm
+  STRIP          = $(COMPILER_PATH)strip
+endif
+
+ifeq ($(PLATFORM),solaris)
+  AR             = $(UTILS_CCS_BIN_PATH)ar
+  AS             = $(UTILS_CCS_BIN_PATH)as
+  LD             = $(UTILS_CCS_BIN_PATH)ld
+  MCS            = $(UTILS_CCS_BIN_PATH)mcs
+  NM             = $(UTILS_CCS_BIN_PATH)nm
+  STRIP          = $(UTILS_CCS_BIN_PATH)strip
+endif
 
 ADB            = $(UTILS_COMMAND_PATH)adb
 BASENAME       = $(UTILS_COMMAND_PATH)basename