diff options
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch')
-rw-r--r-- | meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch b/meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch new file mode 100644 index 0000000000..5effa6c6f6 --- /dev/null +++ b/meta/recipes-connectivity/openssl/openssl/0001-Configure-do-not-tweak-mips-cflags.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 326909baf81a638d51fa8be1d8227518784f5cc4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Tue, 14 Sep 2021 12:18:25 +0200 | ||
4 | Subject: [PATCH] Configure: do not tweak mips cflags | ||
5 | |||
6 | This conflicts with mips machine definitons from yocto, | ||
7 | e.g. | ||
8 | | Error: -mips3 conflicts with the other architecture options, which imply -mips64r2 | ||
9 | |||
10 | Upstream-Status: Inappropriate [oe-core specific] | ||
11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
12 | --- | ||
13 | Configure | 10 ---------- | ||
14 | 1 file changed, 10 deletions(-) | ||
15 | |||
16 | diff --git a/Configure b/Configure | ||
17 | index 821e680..0387a74 100755 | ||
18 | --- a/Configure | ||
19 | +++ b/Configure | ||
20 | @@ -1422,16 +1422,6 @@ if ($target =~ /^mingw/ && `$config{CC} --target-help 2>&1` =~ m/-mno-cygwin/m) | ||
21 | push @{$config{shared_ldflag}}, "-mno-cygwin"; | ||
22 | } | ||
23 | |||
24 | -if ($target =~ /linux.*-mips/ && !$disabled{asm} | ||
25 | - && !grep { $_ !~ /-m(ips|arch=)/ } (@{$config{CFLAGS}})) { | ||
26 | - # minimally required architecture flags for assembly modules | ||
27 | - my $value; | ||
28 | - $value = '-mips2' if ($target =~ /mips32/); | ||
29 | - $value = '-mips3' if ($target =~ /mips64/); | ||
30 | - unshift @{$config{cflags}}, $value; | ||
31 | - unshift @{$config{cxxflags}}, $value if $config{CXX}; | ||
32 | -} | ||
33 | - | ||
34 | # If threads aren't disabled, check how possible they are | ||
35 | unless ($disabled{threads}) { | ||
36 | if ($auto_threads) { | ||