build: Use uppercase PIE/PIC compilation flags

This commit is contained in:
mintsuki 2023-04-11 15:57:02 +02:00
parent 514522125b
commit ebd1953e51
3 changed files with 10 additions and 10 deletions

View File

@ -68,8 +68,8 @@ override CPPFLAGS_FOR_TARGET := \
ifeq ($(TARGET),bios) ifeq ($(TARGET),bios)
override CFLAGS_FOR_TARGET += \ override CFLAGS_FOR_TARGET += \
-fno-pie \ -fno-PIE \
-fno-pic \ -fno-PIC \
-m32 \ -m32 \
-march=i686 \ -march=i686 \
-mabi=sysv \ -mabi=sysv \
@ -81,7 +81,7 @@ endif
ifeq ($(TARGET),uefi-x86-64) ifeq ($(TARGET),uefi-x86-64)
override CFLAGS_FOR_TARGET += \ override CFLAGS_FOR_TARGET += \
-fpie \ -fPIE \
-m64 \ -m64 \
-march=x86-64 \ -march=x86-64 \
-mabi=sysv \ -mabi=sysv \
@ -100,7 +100,7 @@ endif
ifeq ($(TARGET),uefi-ia32) ifeq ($(TARGET),uefi-ia32)
override CFLAGS_FOR_TARGET += \ override CFLAGS_FOR_TARGET += \
-fpie \ -fPIE \
-m32 \ -m32 \
-march=i686 \ -march=i686 \
-mabi=sysv \ -mabi=sysv \
@ -114,7 +114,7 @@ endif
ifeq ($(TARGET),uefi-aarch64) ifeq ($(TARGET),uefi-aarch64)
override CFLAGS_FOR_TARGET += \ override CFLAGS_FOR_TARGET += \
-fpie \ -fPIE \
-mgeneral-regs-only -mgeneral-regs-only
override CPPFLAGS_FOR_TARGET := \ override CPPFLAGS_FOR_TARGET := \
-I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \ -I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \

View File

@ -29,8 +29,8 @@ override CFLAGS_FOR_TARGET += \
-fomit-frame-pointer \ -fomit-frame-pointer \
-fno-strict-aliasing \ -fno-strict-aliasing \
-fno-lto \ -fno-lto \
-fno-pie \ -fno-PIE \
-fno-pic \ -fno-PIC \
-m32 \ -m32 \
-march=i686 \ -march=i686 \
-mabi=sysv \ -mabi=sysv \

View File

@ -41,7 +41,7 @@ override INTERNALCFLAGS := \
-fno-stack-protector \ -fno-stack-protector \
-fno-stack-check \ -fno-stack-check \
-fno-lto \ -fno-lto \
-fpie \ -fPIE \
-mgeneral-regs-only \ -mgeneral-regs-only \
-mno-red-zone \ -mno-red-zone \
-I. \ -I. \
@ -53,8 +53,8 @@ override INTERNALCFLAGS_MB := \
-fno-stack-protector \ -fno-stack-protector \
-fno-stack-check \ -fno-stack-check \
-fno-lto \ -fno-lto \
-fno-pie \ -fno-PIE \
-fno-pic \ -fno-PIC \
-m32 \ -m32 \
-march=i686 \ -march=i686 \
-mabi=sysv \ -mabi=sysv \