kernel: disable an optimization on GCC6...

as a workaround for crashs.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
Murai Takashi 2016-05-09 13:45:49 +09:00 committed by Jérôme Duval
parent 2d4d0f0ac1
commit 16c53b7527

View File

@ -327,6 +327,11 @@ rule KernelArchitectureSetup architecture
HAIKU_KERNEL_C++FLAGS += -std=gnu++11 ;
}
if $(gccVersion[1]) >= 6 {
HAIKU_KERNEL_C++FLAGS += -fno-delete-null-pointer-checks ;
HAIKU_KERNEL_CCFLAGS += -fno-delete-null-pointer-checks ;
}
HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ;
HAIKU_KERNEL_PIC_LINKFLAGS = ;
HAIKU_KERNEL_ADDON_LINKFLAGS = ;