From 06d35ea9425dbfeff8bcd0d842a31d22843b937b Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 29 Apr 2016 10:26:22 +0200 Subject: [PATCH] Improved TCL_VERSION detection so it does not read .tclshrc --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2