removed unreliable musl test and left only accurate new one

Former-commit-id: 386be8990a83fcc5d57aa20a268544a877c2cfd7
This commit is contained in:
christianEQ 2021-06-11 18:19:59 +00:00
parent 39a3238a8f
commit f8289cebcc

View File

@ -1,12 +1,10 @@
set system_name [string tolower [exec uname -s]]
# ldd --version returns 1 under musl for unknown reasons. If this check stops working, that may be why
set is_musl [catch {exec ldd --version}]
set system_supported 0
# We only support darwin or Linux with glibc
if {$system_name eq {darwin}} {
set system_supported 1
} elseif {$system_name eq {linux} && $is_musl eq 0} {
} elseif {$system_name eq {linux}} {
# Avoid the test on libmusl, which does not support backtrace
set ldd [exec ldd src/keydb-server]
if {![string match {*libc.musl*} $ldd]} {