-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
c740500
commit 119ef3a
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- /core/shared-lib/platform/linux/bh_thread.c orig 2023-07-15 14:14:26.388776102 +0200 | ||
+++ /core/shared-lib/platform/linux/bh_thread.c 2023-07-15 14:13:17.443138319 +0200 | ||
@@ -176,7 +176,7 @@ | ||
if (ret) | ||
return BHT_ERROR; | ||
|
||
- pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE_NP); | ||
+ pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE); | ||
ret = pthread_mutex_init(mutex, &mattr); | ||
pthread_mutexattr_destroy(&mattr); | ||
|