summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-02-12 17:56:58 -0500
committerPauli <pauli@openssl.org>2023-03-20 09:28:22 +1100
commit8b399c5e51b4d010650cb344a67a696daf096a05 (patch)
tree4e6018a3e70987e29dc6d1cf13cfb93f4de86b35 /Configure
parent6678b0868b7660177f8b5af299894e2e99330a21 (diff)
downloadopenssl-new-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-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 6ef882f5a3..4e4681ae8f 100755
--- a/Configure
+++ b/Configure
@@ -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/);