From: Andrey Miroshnikov Date: Fri, 15 Jul 2022 20:57:46 +0000 (+0000) Subject: Not hardcoding tcl version and Debian detection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cc1c1936967653b706b271f505d7b2e8e823dc7;p=tas-yagle.git Not hardcoding tcl version and Debian detection --- diff --git a/distrib/share/etc/Linux.mk b/distrib/share/etc/Linux.mk index e0ca79b..76a4eb9 100644 --- a/distrib/share/etc/Linux.mk +++ b/distrib/share/etc/Linux.mk @@ -81,10 +81,17 @@ CPLUSPLUS = /usr/bin/g++ CFLAGS = CPPFLAGS = +# tcl dir is a symlink to the current version (tcl8.6), better for future ifeq ($(findstring Ubuntu,$(shell uname -v)),Ubuntu) - CC += -I/usr/include/tcl8.5 - SCC += -I/usr/include/tcl8.5 - CPLUSPLUS += -I/usr/include/tcl8.5 + CC += -I/usr/include/tcl + SCC += -I/usr/include/tcl + CPLUSPLUS += -I/usr/include/tcl +endif + +ifeq ($(findstring Debian,$(shell uname -v)),Debian) + CC += -I/usr/include/tcl + SCC += -I/usr/include/tcl + CPLUSPLUS += -I/usr/include/tcl endif ifeq ($(PACKAGING_TOP),)