rustlib: install rlib's as well as .so's

This will allow clients to choose between static and dynamic linking
This commit is contained in:
Steven Walter
2016-05-03 23:31:19 -04:00
parent a74985c341
commit 7b05b9c7f0

View File

@@ -9,7 +9,7 @@ DEPENDS += "virtual/${TARGET_PREFIX}rust"
RUSTLIB_DEP = ""
do_install () {
for f in ${STAGING_DIR_NATIVE}/${rustlib_src}/*.so; do
for f in ${STAGING_DIR_NATIVE}/${rustlib_src}/*; do
echo Installing $f
install -D -m 755 $f ${D}/${rustlib}/$(basename $f)
done
@@ -21,4 +21,6 @@ python do_qa_configure() {
}
FILES_${PN} += "${rustlib}/*.so"
FILES_${PN}-dev += "${rustlib}/*.rlib"
FILES_${PN}-staticdev += "${rustlib}/*.a"
FILES_${PN}-dbg += "${rustlib}/.debug"