diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-12 17:56:58 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2023-03-17 11:34:47 -0400 |
commit | 969327390220aee7515a4054d5189186402d6687 (patch) | |
tree | 880444d60cefe8545a4d17c7c9f9b712f9ad85ea | |
parent | 332093fffdffac0696b57411b84019c31c41400e (diff) |
Fix Configure test for -mips in CFLAGS
We want to add -mips2 or -mips3 only if the user hasn't already
specified a mips version in CFLAGS. The existing test was a
double-negative.
CLA: trivial
Fixes: https://github.com/openssl/openssl/issues/20214
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20536)
-rwxr-xr-x | Configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1244,7 +1244,7 @@ if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m) } if ($target =~ /linux.*-mips/ && !$disabled{asm} - && !grep { $_ !~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) { + && !grep { $_ =~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) { # minimally required architecture flags for assembly modules my $value; $value = '-mips2' if ($target =~ /mips32/); |