summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rust-common.bbclass4
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
2inherit rust-target-config 2inherit rust-target-config
3 3
4# Common variables used by all Rust builds 4# Common variables used by all Rust builds
5export rustlibdir = "${libdir}/rust" 5export rustlibdir = "${libdir}/rustlib/${RUST_HOST_SYS}/lib"
6FILES:${PN} += "${rustlibdir}/*.so" 6FILES:${PN} += "${rustlibdir}/*.so"
7FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta" 7FILES:${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta"
8FILES:${PN}-dbg += "${rustlibdir}/.debug" 8FILES:${PN}-dbg += "${rustlibdir}/.debug"
9 9
10RUSTLIB = "-L ${STAGING_LIBDIR}/rust" 10RUSTLIB = "-L ${STAGING_DIR_HOST}${rustlibdir}"
11RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" 11RUST_DEBUG_REMAP = "--remap-path-prefix=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
12RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}" 12RUSTFLAGS += "${RUSTLIB} ${RUST_DEBUG_REMAP}"
13RUSTLIB_DEP ?= "libstd-rs" 13RUSTLIB_DEP ?= "libstd-rs"