diff options
| author | s-ol <s+removethis@s-ol.nu> | 2024-05-16 09:44:19 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2024-05-25 22:38:46 +0000 |
| commit | 70c5f8bc4adf2eb3a064e21f0316189e364048a7 (patch) | |
| tree | 45d7ba2a1c0800fffbf2347d88e44dec8035690c | |
| parent | dirty apriltag fix (diff) | |
| download | folk-printer-config.tar.gz folk-printer-config.zip | |
dirty loadlib fixprinter-config
| -rw-r--r-- | lib/c.tcl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -529,11 +529,12 @@ namespace eval c { } proc loadlibLd {libname} { set candidates [split [exec /usr/sbin/ldconfig -p | grep $libname] "\n"] + if {[llength $candidates] > 1} { + # Is it greater than 1? if so, filter by arch + set candidates [lsearch -all -inline $candidates *x86-64*] + } if {[llength $candidates] == 0} { error "c loadlibLd: Could not find library $libname" - } elseif {[llength $candidates] > 1} { - # Is it greater than 1? if so, filter by arch - set candidates [lsearch -all -inline $candidates *$::tcl_platform(machine)*] } loadlib [lindex $candidates 0 end] } |
