commit:     78e0d4ea5ceacc407f7c3acdec0b0eb2eff08ef0
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 24 21:13:31 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Oct 24 22:09:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78e0d4ea

dev-util/maturin: filter out -flto

ring crate uses C and not seeing a way to skip using it,
filter out lto to avoid undefined references

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/maturin/maturin-0.11.5.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-util/maturin/maturin-0.11.5.ebuild 
b/dev-util/maturin/maturin-0.11.5.ebuild
index 3ab6a9155f4..896159452b6 100644
--- a/dev-util/maturin/maturin-0.11.5.ebuild
+++ b/dev-util/maturin/maturin-0.11.5.ebuild
@@ -243,7 +243,7 @@ CRATES_TEST="
        scopeguard-1.1.0
        smallvec-1.7.0"
 PYTHON_COMPAT=( python3_{8..10} )
-inherit cargo python-any-r1
+inherit cargo flag-o-matic python-any-r1
 
 DESCRIPTION="Build and publish crates with pyo3, rust-cpython and cffi 
bindings"
 HOMEPAGE="https://github.com/pyo3/maturin";
@@ -278,6 +278,12 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
+src_configure() {
+       filter-flags '-flto*' # undefined references with ring crate
+
+       cargo_src_configure
+}
+
 src_test() {
        cargo_src_test -- --skip locked_doesnt_build_without_cargo_lock
 }

Reply via email to