mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user