diff --git a/librsvg-2.48.8.ebuild b/librsvg-2.48.8-r1.ebuild index c5ec275..0c95c88 100644 --- a/librsvg-2.48.8.ebuild +++ b/librsvg-2.48.8-r1.ebuild @@ -54,6 +54,14 @@ multilib_src_configure() { --enable-pixbuf-loader ) + if tc-is-cross-compiler; then + myconf+=( + --host=${CHOST_default} + RUST_TARGET="$(rust_abi)" + cross_compiling=yes + ) + fi + if ! multilib_is_native_abi; then myconf+=( # Set the rust target, which can differ from CHOST