Improved TCL_VERSION detection so it does not read .tclshrc
authorClifford Wolf <clifford@clifford.at>
Fri, 29 Apr 2016 08:26:22 +0000 (10:26 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 29 Apr 2016 08:26:22 +0000 (10:26 +0200)
Makefile

index c7f56be3cc40ee4965dcdc3d779823132244c038..433ed4b7d1f38a42f19f381acd7bb8a39d7c7c93 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -194,7 +194,7 @@ LDLIBS += $(shell $(PKG_CONFIG) --silence-errors --libs libffi || echo -lffi) -l
 endif
 
 ifeq ($(ENABLE_TCL),1)
-TCL_VERSION ?= tcl$(shell echo 'puts [info tclversion]' | tclsh)
+TCL_VERSION ?= tcl$(shell bash -c "tclsh <(echo 'puts [info tclversion]')")
 TCL_INCLUDE ?= /usr/include/$(TCL_VERSION)
 CXXFLAGS += -I$(TCL_INCLUDE) -DYOSYS_ENABLE_TCL
 LDLIBS += -l$(TCL_VERSION)