[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT/MUSL PATCH 6/7] Prevent syscall shim layer libc wrapper generation



From: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>

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 not have both as it would lead to conflicts.

Signed-off-by: Cyril Soldani <cyril.soldani@xxxxxxxxx>
Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
---
 Makefile.uk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.uk b/Makefile.uk
index 6de0b77..7afb9f7 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -118,6 +118,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
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.