Message ID | e7c7660f95136293a022634053a45613116a8860.1739300779.git.scott.murray@konsulko.com |
---|---|
State | New |
Headers | show |
Series | Update to Rust 1.81.0 | expand |
diff --git a/classes/cargo.bbclass b/classes/cargo.bbclass index 0829a58..b583f84 100644 --- a/classes/cargo.bbclass +++ b/classes/cargo.bbclass @@ -61,9 +61,11 @@ cargo_do_install () { for tgt in "${B}/target/${CARGO_TARGET_SUBDIR}/"*; do case $tgt in *.so|*.rlib) - install -d "${D}${rustlibdir}" - install -m755 "$tgt" "${D}${rustlibdir}" - have_installed=true + if [ -n "${CARGO_INSTALL_LIBRARIES}" ]; then + install -d "${D}${rustlibdir}" + install -m755 "$tgt" "${D}${rustlibdir}" + have_installed=true + fi ;; *examples) if [ -d "$tgt" ]; then