From aa385c7cb2ebfa3aa8e6467832e109f752b507a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 23 Jun 2008 15:34:48 +0000 Subject: [PATCH] m68k build flags... same as default for now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26104 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/BuildSetup | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup index dd88c1531d..7e556465b0 100644 --- a/build/jam/BuildSetup +++ b/build/jam/BuildSetup @@ -277,6 +277,17 @@ if $(HAIKU_ARCH) = ppc { HAIKU_KERNEL_PIC_CCFLAGS = -fPIE ; 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 ; + HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; + HAIKU_KERNEL_PIC_LINKFLAGS = ; +} # If the environment variable DEBUG_PRINTF is defined we define an equally # named macro to the variable value. Some components use the macro to allow @@ -512,6 +523,13 @@ if $(HOST_ARCH) = ppc { HOST_KERNEL_PIC_CCFLAGS = -fPIE ; HOST_KERNEL_PIC_LINKFLAGS = -shared -fPIE ; } +if $(HOST_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. + HOST_KERNEL_PIC_CCFLAGS = $(HAIKU_KERNEL_PIC_CCFLAGS) ; + HOST_KERNEL_PIC_LINKFLAGS = $(HAIKU_KERNEL_PIC_LINKFLAGS) ; +} # warning flags HOST_WARNING_CCFLAGS = -Wall -Wno-trigraphs -Wmissing-prototypes -Wpointer-arith -Wcast-align