diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-12 18:21:09 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2023-02-12 18:23:10 -0500 |
commit | c3fb91dafb05c7665a96a6d97ad2a5ed69791f3c (patch) | |
tree | 78c10de0cbd71a482250eada1369a6c220de5a20 /dev-libs/openssl/files | |
parent | sys-devel/gcc: add 13.0.1_pre20230212 (diff) | |
download | gentoo-c3fb91dafb05c7665a96a6d97ad2a5ed69791f3c.tar.gz gentoo-c3fb91dafb05c7665a96a6d97ad2a5ed69791f3c.tar.bz2 gentoo-c3fb91dafb05c7665a96a6d97ad2a5ed69791f3c.zip |
dev-libs/openssl: fix Configure on mips
Closes: https://bugs.gentoo.org/894140
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/openssl/files')
-rw-r--r-- | dev-libs/openssl/files/openssl-3.0.8-mips-cflags.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-libs/openssl/files/openssl-3.0.8-mips-cflags.patch b/dev-libs/openssl/files/openssl-3.0.8-mips-cflags.patch new file mode 100644 index 000000000000..111681f27d07 --- /dev/null +++ b/dev-libs/openssl/files/openssl-3.0.8-mips-cflags.patch @@ -0,0 +1,30 @@ +https://bugs.gentoo.org/894140 +https://github.com/openssl/openssl/issues/20214 + +From d500b51791cd56e73065e3a7f4487fc33f31c91c Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Sun, 12 Feb 2023 17:56:58 -0500 +Subject: [PATCH] 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. + +Fixes: https://github.com/openssl/openssl/issues/20214 +--- + Configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Configure b/Configure +index b6bbec0a85c4..ec48614d6b99 100755 +--- a/Configure ++++ b/Configure +@@ -1475,7 +1475,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/); |