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@gentoo.org>
This commit is contained in:
Ionen Wolkens
2021-10-24 18:09:30 -04:00
parent 24e7ec9028
commit 78e0d4ea5c
+7 -1
View File
@@ -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
}