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
This commit is contained in:
Michael Lotz 2009-01-23 00:40:41 +00:00
parent 18cd67c760
commit 64f7e20f9c
1 changed files with 5 additions and 0 deletions

View File

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