summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/tcl/tcl.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/tcl/tcl.mk b/package/tcl/tcl.mk
index cc0565c0da..c145f57c23 100644
--- a/package/tcl/tcl.mk
+++ b/package/tcl/tcl.mk
@@ -35,6 +35,11 @@ define TCL_REMOVE_TCLSH
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
endef
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH
+else
+define TCL_SYMLINK_TCLSH
+ ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
+endef
+TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
endif
$(eval $(autotools-package))
OpenPOWER on IntegriCloud