From 0f104a754b0c1249fff1c19235fd9d133c99e1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 26 Jul 2008 22:04:31 +0000 Subject: [PATCH] - Cleanup - For simplicity we'll force using only insn common to 020 to 060, mostly to avoid unimplemented floating point ops in the kernel. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26647 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index 9a0d95f18e..fc5c100317 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -278,15 +278,13 @@ if $(HAIKU_ARCH) = ppc { HAIKU_KERNEL_PIC_LINKFLAGS = -shared -fPIE ; } if $(HAIKU_ARCH) = m68k { - # Build a position independent M68K kernel. We need to be able to relocate - # the kernel, since the virtual address space layout at boot time is not - # fixed. - #HAIKU_KERNEL_PIC_CCFLAGS = -mpcrel -Wa,--pcrel ; - #HAIKU_KERNEL_PIC_LINKFLAGS = -mpcrel ; - #HAIKU_KERNEL_PIC_CCFLAGS = -msep-data -Wa,--pcrel ; - #HAIKU_KERNEL_PIC_LINKFLAGS = -msep-data ; + # We don't need a PIC kernel as it's always at the same place. + # it's actually needed to not use pic, else linking fails due to too large pc refs. HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; HAIKU_KERNEL_PIC_LINKFLAGS = ; + # we don't want to have to handle emulating missing FPU opcodes for 040 and 060 in the kernel + HAIKU_KERNEL_CCFLAGS += -m68020-60 ; + HAIKU_KERNEL_C++FLAGS += -m68020-60 ; } # If the environment variable DEBUG_PRINTF is defined we define an equally