Not hardcoding tcl version and Debian detection
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Fri, 15 Jul 2022 20:57:46 +0000 (20:57 +0000)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Fri, 15 Jul 2022 20:57:46 +0000 (20:57 +0000)
distrib/share/etc/Linux.mk

index e0ca79b5adb8fb308d736ef14d2c63dd7191fc60..76a4eb912270aba554e38d2d51d9b65a72f14b6a 100644 (file)
@@ -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),)