From 0beef0ba00f7864b7367899d859509a99237fcf0 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 28 Jul 2024 10:47:08 +0200 Subject: [PATCH] fix: util/mkinstallvars.pl mistreated LDLIBS on Unix (and Windows) Don't do comma separation on those platforms. Fixes #24986 Reviewed-by: Neil Horman Reviewed-by: Matt Caswell Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/25018) --- util/mkinstallvars.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/mkinstallvars.pl b/util/mkinstallvars.pl index 5fadb708e1b..e2b7d9d0832 100644 --- a/util/mkinstallvars.pl +++ b/util/mkinstallvars.pl @@ -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; _____ -- 2.47.2