8027627: Don't hardcode bash path in LOG=trace
authorihse
Mon, 01 Sep 2014 10:39:20 +0200
changeset 26282 0001e32ae03f
parent 26132 11df1233e1e8
child 26284 e94c71fdf7c3
8027627: Don't hardcode bash path in LOG=trace Reviewed-by: erikj, tbell Contributed-by: Dmitry Samersoff <dmitry.samersoff@oracle.com>
make/common/MakeBase.gmk
--- a/make/common/MakeBase.gmk	Fri Aug 29 10:46:21 2014 -0700
+++ b/make/common/MakeBase.gmk	Mon Sep 01 10:39:20 2014 +0200
@@ -349,7 +349,7 @@
     # (and causing a crash on Cygwin).
     # Default shell seems to always be /bin/sh. Must override with bash to get this to work on Solaris.
     # Only use time if it's GNU time which supports format and output file.
-    WRAPPER_SHELL:=/bin/bash $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(findstring yes,$$(IS_GNU_TIME)),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log /bin/bash
+    WRAPPER_SHELL:=$$(BASH) $$(SRC_ROOT)/common/bin/shell-tracer.sh $$(if $$(findstring yes,$$(IS_GNU_TIME)),$$(TIME),-) $$(OUTPUT_ROOT)/build-trace-time.log /bin/bash
     SHELL=$$(warning $$(if $$@,Building $$@,Running shell command) $$(if $$<, (from $$<))$$(if $$?, ($$(wordlist 1, 20, $$?) $$(if $$(wordlist 21, 22, $$?), ... [in total $$(words $$?) files]) newer)))$$(WRAPPER_SHELL)
   endif
   # Never remove warning messages; this is just for completeness