summaryrefslogtreecommitdiffstats
path: root/lib/c.tcl
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2024-05-16 09:44:19 +0000
committers-ol <s+removethis@s-ol.nu>2024-05-25 22:38:46 +0000
commit70c5f8bc4adf2eb3a064e21f0316189e364048a7 (patch)
tree45d7ba2a1c0800fffbf2347d88e44dec8035690c /lib/c.tcl
parentdirty apriltag fix (diff)
downloadfolk-printer-config.tar.gz
folk-printer-config.zip
dirty loadlib fixprinter-config
Diffstat (limited to 'lib/c.tcl')
-rw-r--r--lib/c.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/c.tcl b/lib/c.tcl
index abc696b9..9ca925b8 100644
--- a/lib/c.tcl
+++ b/lib/c.tcl
@@ -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]
}