mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-29 03:43:14 +03:00
build: Pass -mabi=sysv to cc
This commit is contained in:
parent
5d22de7733
commit
07dc81bbee
@ -25,6 +25,7 @@ CFLAGS = -Os -pipe -Wall -Wextra -Werror
|
|||||||
INTERNAL_CFLAGS = \
|
INTERNAL_CFLAGS = \
|
||||||
-m32 \
|
-m32 \
|
||||||
-march=i386 \
|
-march=i386 \
|
||||||
|
-mabi=sysv \
|
||||||
-std=gnu11 \
|
-std=gnu11 \
|
||||||
-ffreestanding \
|
-ffreestanding \
|
||||||
-fno-stack-protector \
|
-fno-stack-protector \
|
||||||
|
@ -51,7 +51,8 @@ LIMINE_VERSION := $(shell cat ../version 2>/dev/null || ( git describe --exact-m
|
|||||||
|
|
||||||
WERROR = -Werror
|
WERROR = -Werror
|
||||||
CFLAGS = -O3 -g -pipe -Wall -Wextra $(WERROR)
|
CFLAGS = -O3 -g -pipe -Wall -Wextra $(WERROR)
|
||||||
S2CFLAGS = -Os -g -pipe -Wall -Wextra $(WERROR)
|
|
||||||
|
S2CFLAGS := $(CFLAGS) -Os
|
||||||
|
|
||||||
INTERNAL_CFLAGS := \
|
INTERNAL_CFLAGS := \
|
||||||
-std=gnu11 \
|
-std=gnu11 \
|
||||||
@ -81,6 +82,7 @@ ifeq ($(TARGET), bios)
|
|||||||
-Duefi=0 \
|
-Duefi=0 \
|
||||||
-m32 \
|
-m32 \
|
||||||
-march=i386 \
|
-march=i386 \
|
||||||
|
-mabi=sysv \
|
||||||
-fno-pie
|
-fno-pie
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -91,6 +93,7 @@ ifeq ($(TARGET), uefi)
|
|||||||
-Duefi=1 \
|
-Duefi=1 \
|
||||||
-m32 \
|
-m32 \
|
||||||
-march=i386 \
|
-march=i386 \
|
||||||
|
-mabi=sysv \
|
||||||
-fpie
|
-fpie
|
||||||
|
|
||||||
INTERNAL_CFLAGS += \
|
INTERNAL_CFLAGS += \
|
||||||
@ -98,6 +101,7 @@ ifeq ($(TARGET), uefi)
|
|||||||
-Duefi=1 \
|
-Duefi=1 \
|
||||||
-m64 \
|
-m64 \
|
||||||
-march=x86-64 \
|
-march=x86-64 \
|
||||||
|
-mabi=sysv \
|
||||||
-I../gnu-efi/inc \
|
-I../gnu-efi/inc \
|
||||||
-I../gnu-efi/inc/x86_64 \
|
-I../gnu-efi/inc/x86_64 \
|
||||||
-fpie \
|
-fpie \
|
||||||
@ -110,6 +114,7 @@ ifeq ($(TARGET), uefi32)
|
|||||||
-Duefi=1 \
|
-Duefi=1 \
|
||||||
-m32 \
|
-m32 \
|
||||||
-march=i386 \
|
-march=i386 \
|
||||||
|
-mabi=sysv \
|
||||||
-I../gnu-efi/inc \
|
-I../gnu-efi/inc \
|
||||||
-I../gnu-efi/inc/ia32 \
|
-I../gnu-efi/inc/ia32 \
|
||||||
-fpie
|
-fpie
|
||||||
|
@ -21,6 +21,7 @@ INTERNALCFLAGS := \
|
|||||||
-ffreestanding \
|
-ffreestanding \
|
||||||
-fno-stack-protector \
|
-fno-stack-protector \
|
||||||
-fno-pic -fpie \
|
-fno-pic -fpie \
|
||||||
|
-mabi=sysv \
|
||||||
-mno-80387 \
|
-mno-80387 \
|
||||||
-mno-mmx \
|
-mno-mmx \
|
||||||
-mno-3dnow \
|
-mno-3dnow \
|
||||||
|
Loading…
Reference in New Issue
Block a user