libc: use common build functions and create dylib

Working around "error: cannot satisfy dependencies so `libc` only shows
up once."
This commit is contained in:
Tyler Hall
2015-07-27 18:48:28 -04:00
committed by Steven Walter
parent 9fac435f1c
commit fc0e2f74b3
+4 -2
View File
@@ -15,10 +15,12 @@ SRCREV = "8b7c17db2235a2a3f2c71242b11fc429a8d05a90"
S = "${WORKDIR}/git"
LIB_SRC = "${S}/src/liblibc/lib.rs"
do_compile () {
oe_runrustc ${S}/src/liblibc/lib.rs --cfg feature='"cargo-build"'
oe_compile_rust_lib --cfg feature='"cargo-build"'
}
do_install () {
install -D -m 644 liblibc.rlib ${D}/${rustlibdir}/liblibc.rlib
oe_install_rust_lib
}