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]>
---
Upstream changed, rebased to next.
  Ralf

 inmates/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inmates/Makefile b/inmates/Makefile
index 38c8b42d..7f3ee742 100644
--- a/inmates/Makefile
+++ b/inmates/Makefile
@@ -27,7 +27,7 @@ LINUXINCLUDE  := $(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
+                -fno-common -fno-stack-protector -ffreestanding
 ifneq ($(wildcard $(INC_CONFIG_H)),)
 KBUILD_CFLAGS += -include $(INC_CONFIG_H)
 endif
-- 
2.13.0

-- 
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