fix: util/mkinstallvars.pl mistreated LDLIBS on Unix (and Windows)

Don't do comma separation on those platforms.

Fixes #24986

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25018)
This commit is contained in:
Richard Levitte 2024-07-28 10:47:08 +02:00 committed by Neil Horman
parent ed7a8bfd74
commit 0beef0ba00

View File

@ -124,7 +124,9 @@ print <<_____;
our \$VERSION = '$ENV{VERSION}';
our \@LDLIBS =
# Unix and Windows use space separation, VMS uses comma separation
split(/ +| *, */, '$ENV{LDLIBS}');
\$^O eq 'VMS'
? split(/ *, */, '$ENV{LDLIBS}')
: split(/ +/, '$ENV{LDLIBS}');
1;
_____