aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-04-29 10:26:22 +0200
committerClifford Wolf <clifford@clifford.at>2016-04-29 10:26:22 +0200
commit06d35ea9425dbfeff8bcd0d842a31d22843b937b (patch)
treeeb84ee12d6b0a2078e7d2d874c4c522745f2a124
parente01464e2ac2bf3bd2752e10b48d2fc3ffc4fdf9e (diff)
downloadyosys-06d35ea9425dbfeff8bcd0d842a31d22843b937b.tar.gz
yosys-06d35ea9425dbfeff8bcd0d842a31d22843b937b.tar.bz2
yosys-06d35ea9425dbfeff8bcd0d842a31d22843b937b.zip
Improved TCL_VERSION detection so it does not read .tclshrc
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c7f56be3c..433ed4b7d 100644
--- 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)