From 64f7e20f9ce9c068586e0ed2995d7c8717d373ac Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 23 Jan 2009 00:40:41 +0000 Subject: [PATCH] Add -ffreestanding to kernel C/C++ flags. This means that ISO conventions like the main() signature are not applied and do not generate errors when violated. Our bootloader has a non-standard main() signature for example, which is of course fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28983 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 5298925c37..e980e5485f 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -273,6 +273,11 @@ if $(HAIKU_GCC_VERSION[1]) >= 3 { if $(HAIKU_GCC_VERSION[1]) >= 4 { HAIKU_C++FLAGS += -Wno-deprecated ; + + if $(HAIKU_GCC_VERSION[2]) >= 3 { + HAIKU_KERNEL_CCFLAGS += -ffreestanding ; + HAIKU_KERNEL_C++FLAGS += -ffreestanding ; + } } HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ;