From 512fa873bfa9480fe1c3d9730353e193b0617272 Mon Sep 17 00:00:00 2001 From: Bogdan107 <35569459+Bogdan107@users.noreply.github.com> Date: Fri, 12 Feb 2021 19:46:03 +0000 Subject: [PATCH] Update tclreadlineInit.tcl.in In 64-bit linux system, standart library path is /usr/lib64 and library tclreadline.so placed correctly, but installer incorrect configure tclreadlineInit.tcl script, which find library in /usr/lib. Correct way - to change installer (Makefile or configure.in file) for correct path in @TCLRL_LIBDIR@, but easy way - correct this file. This patch add standart hardcoded library path, depending to platform. --- tclreadlineInit.tcl.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tclreadlineInit.tcl.in b/tclreadlineInit.tcl.in index df17171..ab67dd4 100644 --- a/tclreadlineInit.tcl.in +++ b/tclreadlineInit.tcl.in @@ -17,7 +17,11 @@ proc ::tclreadline::Init {} { uplevel #0 { if {![info exists tclreadline::library]} { set msg "" - foreach dirname [list @TCLRL_LIBDIR@ [file dirname [info script]]] { + set libsList [list @TCLRL_LIBDIR@ [file dirname [info script]]] + switch -- $tcl_platform(os) { + Linux {lappend libsList /usr/lib /usr/lib64} + } + foreach dirname $libsList { if {[catch {load [file join $dirname libtclreadline[info sharedlibextension]]} msg] == 0} { set msg "" break