diff options
author | Richard Levitte <levitte@openssl.org> | 2020-01-17 12:47:44 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-01-23 18:01:50 +0100 |
commit | cf0843c09101fa7a1718c4423543358b7fe1876a (patch) | |
tree | 91e129d199d7b3d6819a15d280e3db9b9a618cc9 /Configure | |
parent | Add answers for EVP_PKEY_get_default_digest_name() in RSA and DSA keymgmt (diff) | |
download | openssl-cf0843c09101fa7a1718c4423543358b7fe1876a.tar.xz openssl-cf0843c09101fa7a1718c4423543358b7fe1876a.zip |
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 <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10878)
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1513,7 +1513,7 @@ if ($strict_warnings) } } -if (grep { $_ eq '-static' } @{$config{LDFLAGS}}) { +if (grep { $_ =~ /(?:^|\s)-static(?:\s|$)/ } @{$config{LDFLAGS}}) { disable('static', 'pic', 'threads'); } |