From: Clifford Wolf Date: Fri, 29 Apr 2016 08:26:22 +0000 (+0200) Subject: Improved TCL_VERSION detection so it does not read .tclshrc X-Git-Tag: yosys-0.7~238 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06d35ea9425dbfeff8bcd0d842a31d22843b937b;p=yosys.git Improved TCL_VERSION detection so it does not read .tclshrc --- 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)