diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rust-common.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass index 516b258c15..8ee05f57f8 100644 --- a/meta/classes/rust-common.bbclass +++ b/meta/classes/rust-common.bbclass | |||
@@ -2,12 +2,12 @@ inherit python3native | |||
2 | inherit rust-target-config | 2 | inherit rust-target-config |
3 | 3 | ||
4 | # Common variables used by all Rust builds | 4 | # Common variables used by all Rust builds |
5 | export rustlibdir = "${libdir}/rust" | 5 | export rustlibdir = "${libdir}/rustlib/${RUST_HOST_SYS}/lib" |
6 | FILES:${PN} += "${rustlibdir}/*.so" | 6 | FILES:${PN} += "${rustlibdir}/*.so" |
7 | FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta" | 7 | FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta" |
8 | FILES:${PN}-dbg += "${rustlibdir}/.debug" | 8 | FILES:${PN}-dbg += "${rustlibdir}/.debug" |
9 | 9 | ||
10 | RUSTLIB = "-L ${STAGING_LIBDIR}/rust" | 10 | RUSTLIB = "-L ${STAGING_DIR_HOST}${rustlibdir}" |
11 | RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | 11 | RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" |
12 | RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" | 12 | RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" |
13 | RUSTLIB_DEP ?= "libstd-rs" | 13 | RUSTLIB_DEP ?= "libstd-rs" |