dev-lang/erlang: fix lto support, bug #681778
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 May 2019 08:20:45 +0000 (09:20 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 26 May 2019 08:25:54 +0000 (09:25 +0100)
commitac0ba596486e18bea03c0a59cc95b0c036443ebb
tree4595081bce47c0e5d00440a1139352b806d3e213
parent4d08bdcc71c359831f5f5e6a682918c3c54989b9
dev-lang/erlang: fix lto support, bug #681778

re:replace/4 used libpcre2 with a stack overflow check.
lto was smart enough to inline the check too much to
make it useless.

The changes uninlines stack prober and fixes re:replace/4.

Reported-by: Fabio Coatti
Closes: https://bugs.gentoo.org/681778
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-lang/erlang/erlang-21.3-r1.ebuild [new file with mode: 0644]
dev-lang/erlang/files/erlang-21.3-lto.patch [new file with mode: 0644]