Fix no-tls1_3
[openssl.git] / Configure
index 1e86bfa198e6efb6aa3758179c3236c27a017241..696f15ab0f915f4cd8f2f3e5e2622bba4426581b 100755 (executable)
--- 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');
 }