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

View File

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

View File

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