From fc0e2f74b348080afb4169be4bdb061f04eaf5ed Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Mon, 27 Jul 2015 18:48:28 -0400 Subject: [PATCH] libc: use common build functions and create dylib Working around "error: cannot satisfy dependencies so `libc` only shows up once." --- recipes-core/libc/libc-rs_0.1.8.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes-core/libc/libc-rs_0.1.8.bb b/recipes-core/libc/libc-rs_0.1.8.bb index b9c808f..a1ee5b5 100644 --- a/recipes-core/libc/libc-rs_0.1.8.bb +++ b/recipes-core/libc/libc-rs_0.1.8.bb @@ -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 }