]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
nightly: fix check for Illumos libc
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 15 Apr 2025 18:39:22 +0000 (20:39 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 15 Apr 2025 18:39:22 +0000 (20:39 +0200)
On Illumos `uname -o` outputs "illumos". We weren't testing for
that so it fell through to the Linux block which runs libc.so to
get the version string. On Illumos that outputs

usage: ld.so.1 [-e option,...] dynamic-object [object args,...]

nightly/bin/nightly

index bb943eb8016e5e7318a5d271096b282a4e6938a1..92931e86ff2f335f87afcc4a8c0fc01e9548abf4 100755 (executable)
@@ -198,6 +198,8 @@ fi
 gdb_version="`gdb --version 2> /dev/null | head -1`"
 if [ `uname -o` = "Solaris" ]; then
   libc="Solaris libc"
+elif [ `uname -o` = "illumos" ]; then
+  libc="Illumos libc"
 elif  [ `uname -o` = "FreeBSD" ]; then
   libc="FreeBSD libc"
 else