From 891a743ac34cf265563f55455b452c61056234e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 25 Feb 2018 16:18:31 +0100 Subject: [PATCH] x86_64: add kernel define and macro for x86 compatibility. thus the kernel can be built with 32-bit compatibility support. Change-Id: I5699bcb04908d5abb01da3166c3c180582b9026f --- build/jam/ArchitectureRules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index 19fcb7d716..d3286e5461 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -394,6 +394,12 @@ rule KernelArchitectureSetup architecture HAIKU_BOOT_CCFLAGS += -m32 -march=pentium ; HAIKU_BOOT_C++FLAGS += -m32 -march=pentium ; } + + if x86 in $(HAIKU_ARCHS[2-]) || x86_gcc2 in $(HAIKU_ARCHS[2-]) { + Echo "Enable kernel ia32 compatibility" ; + HAIKU_KERNEL_DEFINES += _COMPAT_MODE ; + HAIKU_KERNEL_COMPAT_MODE = 1 ; + } } if $(HAIKU_BOOT_PLATFORM) = efi {