1 |
commit: 8bfac183230c31f95a3ae809d8647f87eacfae38 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 24 22:56:06 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 24 22:56:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfac183 |
7 |
|
8 |
dev-lang/erlang: add -fno-strict-aliasing workaround |
9 |
|
10 |
Reported-by: Jonathan Davies |
11 |
Closes: https://bugs.gentoo.org/797886 |
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-lang/erlang/erlang-24.0.2.ebuild | 5 +++++ |
16 |
1 file changed, 5 insertions(+) |
17 |
|
18 |
diff --git a/dev-lang/erlang/erlang-24.0.2.ebuild b/dev-lang/erlang/erlang-24.0.2.ebuild |
19 |
index 01313ebc6b1..40a0d0afa21 100644 |
20 |
--- a/dev-lang/erlang/erlang-24.0.2.ebuild |
21 |
+++ b/dev-lang/erlang/erlang-24.0.2.ebuild |
22 |
@@ -54,6 +54,11 @@ src_prepare() { |
23 |
default |
24 |
|
25 |
tc-export AR CPP CXX LD |
26 |
+ |
27 |
+ # bug #797886: erlang's VM does unsafe casts for ints |
28 |
+ # to pointers and back. This breaks on gcc-11 -flto. |
29 |
+ append-flags -fno-strict-aliasing |
30 |
+ |
31 |
./otp_build autoconf || die |
32 |
} |