]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
fix: util/mkinstallvars.pl mistreated LDLIBS on Unix (and Windows)
authorRichard Levitte <levitte@openssl.org>
Sun, 28 Jul 2024 08:47:08 +0000 (10:47 +0200)
committerNeil Horman <nhorman@openssl.org>
Sat, 3 Aug 2024 13:16:10 +0000 (09:16 -0400)
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)

(cherry picked from commit 0beef0ba00f7864b7367899d859509a99237fcf0)

util/mkinstallvars.pl

index 5fadb708e1b7765b442484d18dee338b93020e19..e2b7d9d08321fbe43212777dc0c3c4f12a7c7865 100644 (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;
 _____