diff options
-rw-r--r-- | meta/classes-recipe/cargo.bbclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes-recipe/cargo.bbclass b/meta/classes-recipe/cargo.bbclass index 0829a58dd9..b583f84bdf 100644 --- a/meta/classes-recipe/cargo.bbclass +++ b/meta/classes-recipe/cargo.bbclass | |||
@@ -61,9 +61,11 @@ cargo_do_install () { | |||
61 | for tgt in "${B}/target/${CARGO_TARGET_SUBDIR}/"*; do | 61 | for tgt in "${B}/target/${CARGO_TARGET_SUBDIR}/"*; do |
62 | case $tgt in | 62 | case $tgt in |
63 | *.so|*.rlib) | 63 | *.so|*.rlib) |
64 | install -d "${D}${rustlibdir}" | 64 | if [ -n "${CARGO_INSTALL_LIBRARIES}" ]; then |
65 | install -m755 "$tgt" "${D}${rustlibdir}" | 65 | install -d "${D}${rustlibdir}" |
66 | have_installed=true | 66 | install -m755 "$tgt" "${D}${rustlibdir}" |
67 | have_installed=true | ||
68 | fi | ||
67 | ;; | 69 | ;; |
68 | *examples) | 70 | *examples) |
69 | if [ -d "$tgt" ]; then | 71 | if [ -d "$tgt" ]; then |