]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Prevent syscall shim layer libc wrapper generation
authorCyril Soldani <cyril.soldani@uliege.be>
Fri, 9 Oct 2020 16:55:50 +0000 (18:55 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 13 Oct 2021 11:31:40 +0000 (11:31 +0000)
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 <cyril.soldani@uliege.be>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #3

Makefile.uk

index 05b5bfbc56b7ff944205ee4f3a251963945256e5..621f0b3222d7c4914d35e7cb24309b366f120788 100644 (file)
@@ -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