Improved TCL_VERSION detection so it does not read .tclshrc

This commit is contained in:
Clifford Wolf 2016-04-29 10:26:22 +02:00
parent e01464e2ac
commit 06d35ea942
1 changed files with 1 additions and 1 deletions

View File

@ -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)