From cf0843c09101fa7a1718c4423543358b7fe1876a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 17 Jan 2020 12:47:44 +0100 Subject: [PATCH] Configure: Better detection of '-static' in @{$config{LDFLAGS}} @{$config{LDFLAGS}} isn't necessarily split up in pieces, so we need to check for '-static' with a regexp rather than with an exact string match. Fixes #10867 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/10878) --- Configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configure b/Configure index 1e86bfa198..696f15ab0f 100755 --- a/Configure +++ b/Configure @@ -1513,7 +1513,7 @@ if ($strict_warnings) } } -if (grep { $_ eq '-static' } @{$config{LDFLAGS}}) { +if (grep { $_ =~ /(?:^|\s)-static(?:\s|$)/ } @{$config{LDFLAGS}}) { disable('static', 'pic', 'threads'); } -- 2.25.1