diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-12 17:56:58 -0500 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-20 09:28:22 +1100 |
commit | 8b399c5e51b4d010650cb344a67a696daf096a05 (patch) | |
tree | 4e6018a3e70987e29dc6d1cf13cfb93f4de86b35 /Configure | |
parent | 6678b0868b7660177f8b5af299894e2e99330a21 (diff) | |
download | openssl-8b399c5e51b4d010650cb344a67a696daf096a05.tar.gz |
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: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20273)
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1478,7 +1478,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/); |