From: Cyril Soldani Date: Fri, 9 Oct 2020 16:55:50 +0000 (+0200) Subject: Prevent syscall shim layer libc wrapper generation X-Git-Tag: RELEASE-0.6~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c4c9d1789bfe492103ea2a24e79dd4ad40aa0249;p=unikraft%2Flibs%2Fmusl.git Prevent syscall shim layer libc wrapper generation The musl libc provides its own wrappers around syscalls, which we prefer to the shim-layer-generated ones as they often do additional bookkeeping. And we can't have both as it would lead to conflicts. Signed-off-by: Cyril Soldani Tested-by: Unikraft CI GitHub-Pull-Request: #3 --- diff --git a/Makefile.uk b/Makefile.uk index 05b5bfb..621f0b3 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -116,6 +116,7 @@ LIBMUSL_CFLAGS-y += -Wno-missing-braces LIBMUSL_CFLAGS-y += -Wno-cast-function-type LIBMUSL_CFLAGS-y += -Wno-format-contains-nul LIBMUSL_CFLAGS-y += -Wno-type-limits +LIBMUSL_CFLAGS-y += -DUK_LIBC_SYSCALL=0 LIBMUSL_CFLAGS-y += $(LIBMUSL_HDRS_FLAGS-y) # We globally switch off warnings that are caused by musl's public headers