summaryrefslogtreecommitdiffstats
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:59 +1100
commitf0bb166cb6c972247568c5e6a12f71dcda839c1d (patch)
tree2d3e94bcbed4f78f14c4d960f0fc472a9fe0fe54 /Configure
parent2cfe77f045d7fc4f89f8796bb32b4d9942458513 (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: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20273) (cherry picked from commit 8b399c5e51b4d010650cb344a67a696daf096a05)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index ab57c20737..456995240b 100755
--- a/Configure
+++ b/Configure
@@ -1423,7 +1423,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/);