]> xenbits.xensource.com Git - unikraft/libs/wamr.git/commit
lib/libwamr: Move to musl and address compiler errors RELEASE-0.14.0
authorRobert Klink <roberthklink@gmail.com>
Sat, 15 Jul 2023 13:23:56 +0000 (15:23 +0200)
committerUnikraft <monkey@unikraft.io>
Mon, 7 Aug 2023 14:08:57 +0000 (14:08 +0000)
commitb3986b0a81a069b948c02dfba927a4c03721a658
tree6e1047104fe5ed33b7e34b7266b7137323f10dc7
parentc7405005fb704cabcf967cadd6a5e9184986f906
lib/libwamr: Move to musl and address compiler errors

Move from the `LIBNEWLIBC` and `LIBPTHREAD_EMBEDDED` to `LIBMUSL`.
Changed needed to build lib-wamr were:
* Using the `uk/essentials.h` header for a definition of `offsetof`
* Adding a new `0006` patch file to change `PTHREAD_MUTEX_RECURSIVE_NP` into
`PTHREAD_MUTEX_RECURSIVE` as the former on isn't defined
* Change the `0005` patch file to use modern working unikraft initrd loading
code so it can load the `.wasm` files

Signed-off-by: Robert Klink <roberthklink@gmail.com>
Signed-off-by: Ricardo Mohamedhoesein <rmohamedhoesein3@gmail.com>
Co-authored-by: Ricardo Mohamedhoesein <rmohamedhoesein3@gmail.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #8
Config.uk
include/bh_platform.h
patches/0005-adapt-main-c-to-unikraft.patch
patches/0006-recursive_np-to-recursive.patch [new file with mode: 0644]