runtests: fix LD_PRELOAD detection for cmake-built curl binaries

CMake builds by default don't include a triplet in the `curl -V` output,
but a CMake-specific OS string, which is usually capitalized or stylized,
e.g. "Linux", or "FreeBSD". Make the regexp expression case-insensitive
to handle this.

Follow-up to 171b623759 #17653

Closes #17756
This commit is contained in:
Viktor Szakats 2025-06-26 23:13:43 +02:00
parent 2a9dfe275d
commit 7b0b03c057
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -545,7 +545,7 @@ sub checksystemfeatures {
$curl =~ s/^(.*)(libcurl.*)/$1/g || die "Failure determining curl binary version";
$libcurl = $2;
if($curl =~ /linux|bsd|solaris/) {
if($curl =~ /linux|bsd|solaris/i) {
# system supports LD_PRELOAD/LD_LIBRARY_PATH; may be disabled later
$feature{"ld_preload"} = 1;
}