Setup -fno-pic or -fpic in Architecture Rules.
EFI boot needs -fpic but all boot code was built with -fno-pic. This is now set accordingly in HAIKU_BOOT_CCFLAGS and HAIKU_BOOT_C++FLAGS. Also setup compile flags for EFI platform.
This commit is contained in:
committed by
Jessica Hamilton
parent
211483cb51
commit
bd0604764e
@@ -420,6 +420,9 @@ rule KernelArchitectureSetup architecture
|
||||
HAIKU_BOOT_C++FLAGS += -fpic -fno-stack-protector -fPIC -fshort-wchar -mno-red-zone
|
||||
-maccumulate-outgoing-args -Wno-error=unused-variable ;
|
||||
HAIKU_BOOT_LDFLAGS = -Bstatic -Bsymbolic -shared -nostdlib -znocombreloc -nostartfiles ;
|
||||
} else {
|
||||
HAIKU_BOOT_CCFLAGS += -fno-pic ;
|
||||
HAIKU_BOOT_C++FLAGS += -fno-pic ;
|
||||
}
|
||||
|
||||
# warning flags
|
||||
|
||||
Reference in New Issue
Block a user