diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-08 18:23:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-08 18:23:40 (GMT) |
commit | ebf4c78ed811b2c54015d5c0a0fb446da5ae5140 (patch) | |
tree | fd8e42a1c9c82a39621d4bbea322b37f30ddf99a /library | |
parent | 8395974e1b9e2ab626f5fe69e2ae5e77481d0753 (diff) | |
download | tcl-ebf4c78ed811b2c54015d5c0a0fb446da5ae5140.zip tcl-ebf4c78ed811b2c54015d5c0a0fb446da5ae5140.tar.gz tcl-ebf4c78ed811b2c54015d5c0a0fb446da5ae5140.tar.bz2 |
Attempt to fix the last TIP #430 bits, needed to make it work for Tk (and other external packages)
Diffstat (limited to 'library')
-rw-r--r-- | library/auto.tcl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/auto.tcl b/library/auto.tcl index 51d4ef1..ea2fe5e 100644 --- a/library/auto.tcl +++ b/library/auto.tcl @@ -100,12 +100,12 @@ proc tcl_findLibrary {basename version patch initScript enVarName varName} { lappend paths [file join $root app] lappend paths [::${basename}::pkgconfig get libdir,runtime] lappend paths [::${basename}::pkgconfig get bindir,runtime] - if {[catch {::${basename}::pkgconfig get zipfile,runtime} zipfile]} { - set zipfile "lib${basename}[join [split $patch .] _].zip" + if {[catch {::${basename}::pkgconfig get dllfile,runtime} dllfile]} { + set dllfile "lib${basename}${version}[info sharedlibextension]" } lappend paths [file dirname [file join [pwd] [info nameofexecutable]]] foreach path $paths { - set archive [file join $path $zipfile] + set archive [file join $path $dllfile] if {![file exists $archive]} { continue } |