From 5ea726b93a1bba188b63bed49dedd7bcb4204dee Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Sat, 21 Aug 2021 10:33:59 +0200 Subject: [PATCH] Use PIC and shared flags on ARM64 --- build/jam/ArchitectureRules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/jam/ArchitectureRules b/build/jam/ArchitectureRules index c71d219516..093b68a9d8 100644 --- a/build/jam/ArchitectureRules +++ b/build/jam/ArchitectureRules @@ -405,7 +405,8 @@ rule KernelArchitectureSetup architecture case arm64 : HAIKU_KERNEL_PIC_LINKFLAGS += -z max-page-size=0x1000 ; HAIKU_KERNEL_ADDON_LINKFLAGS += -z max-page-size=0x1000 ; - HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; + HAIKU_KERNEL_PIC_CCFLAGS = -fpic ; + HAIKU_KERNEL_PIC_LINKFLAGS = -shared ; case m68k : # We don't want to have to handle emulating missing FPU opcodes for