time-rs: compile native helper C code
This commit is contained in:
committed by
Steven Walter
parent
fc0e2f74b3
commit
84bacaaf21
@@ -15,7 +15,10 @@ SRCREV = "32b212b877b836dbfdc97af5674d91672e70ecbd"
|
|||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
do_compile () {
|
do_compile () {
|
||||||
oe_compile_rust_lib
|
rm -rf time_helpers.o libtimehelpers.a
|
||||||
|
${CC} ${S}/src/time_helpers.c -fPIC -c -o time_helpers.o
|
||||||
|
${AR} rcs libtime_helpers.a time_helpers.o
|
||||||
|
oe_compile_rust_lib -L native=$PWD -l static=time_helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
|
|||||||
Reference in New Issue
Block a user