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 ;