Add -ffreestanding for inmates.  This implies -fno-builtin. We don't
want gcc to do magic things here, because we don't have a standard
library.

Signed-off-by: Ralf Ramsauer <[email protected]>
---
 inmates/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inmates/Makefile b/inmates/Makefile
index b5fa016e..f8037236 100644
--- a/inmates/Makefile
+++ b/inmates/Makefile
@@ -28,7 +28,7 @@ KBUILD_AFLAGS += $(INCLUDES)
 KBUILD_CFLAGS := -g -Os -Wall -Wstrict-prototypes -Wtype-limits \
                 -Wmissing-declarations -Wmissing-prototypes \
                 -fno-strict-aliasing -fomit-frame-pointer -fno-pic \
-                -fno-common -fno-stack-protector $(INCLUDES)
+                -fno-common -fno-stack-protector -ffreestanding $(INCLUDES)
 ifneq ($(wildcard $(INC_CONFIG_H)),)
 KBUILD_CFLAGS += -include $(INC_CONFIG_H)
 endif
-- 
2.12.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to