1From 0377f0d5b5c1079e3b9a80881f4dcc891cbe9f9a Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 30 May 2023 09:11:27 -0700
4Subject: [PATCH] Configure: do not tweak mips cflags
5
6This conflicts with mips machine definitons from yocto,
7e.g.
8| Error: -mips3 conflicts with the other architecture options, which imply -mips64r2
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12
13Refreshed for openssl-3.1.1
14Signed-off-by: Tim Orling <tim.orling@konsulko.com>
15---
16 Configure | 10 ----------
17 1 file changed, 10 deletions(-)
18
19diff --git a/Configure b/Configure
20index 4569952..adf019b 100755
21--- a/Configure
22+++ b/Configure
23@@ -1422,16 +1422,6 @@ if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m)
24         push @{$config{shared_ldflag}}, "-mno-cygwin";
25         }
26
27-if ($target =~ /linux.*-mips/ && !$disabled{asm}
28-        && !grep { $_ =~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) {
29-        # minimally required architecture flags for assembly modules
30-        my $value;
31-        $value = '-mips2' if ($target =~ /mips32/);
32-        $value = '-mips3' if ($target =~ /mips64/);
33-        unshift @{$config{cflags}}, $value;
34-        unshift @{$config{cxxflags}}, $value if $config{CXX};
35-}
36-
37 # If threads aren't disabled, check how possible they are
38 unless ($disabled{threads}) {
39     if ($auto_threads) {
40