Message ID | b0e2fb16ddb20f4d5915d9fa13c41788b8bdd3b5.1738173519.git.scott.murray@konsulko.com |
---|---|
State | New |
Headers | show |
Series | Update to Rust 1.81.0 | expand |
diff --git a/classes-recipe/cargo.bbclass b/classes-recipe/cargo.bbclass index 0829a58..b583f84 100644 --- a/classes-recipe/cargo.bbclass +++ b/classes-recipe/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