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 = \
|
||||
-m32 \
|
||||
-march=i386 \
|
||||
-mabi=sysv \
|
||||
-std=gnu11 \
|
||||
-ffreestanding \
|
||||
-fno-stack-protector \
|
||||
|
@ -51,7 +51,8 @@ LIMINE_VERSION := $(shell cat ../version 2>/dev/null || ( git describe --exact-m
|
||||
|
||||
WERROR = -Werror
|
||||
CFLAGS = -O3 -g -pipe -Wall -Wextra $(WERROR)
|
||||
S2CFLAGS = -Os -g -pipe -Wall -Wextra $(WERROR)
|
||||
|
||||
S2CFLAGS := $(CFLAGS) -Os
|
||||
|
||||
INTERNAL_CFLAGS := \
|
||||
-std=gnu11 \
|
||||
@ -81,6 +82,7 @@ ifeq ($(TARGET), bios)
|
||||
-Duefi=0 \
|
||||
-m32 \
|
||||
-march=i386 \
|
||||
-mabi=sysv \
|
||||
-fno-pie
|
||||
endif
|
||||
|
||||
@ -91,6 +93,7 @@ ifeq ($(TARGET), uefi)
|
||||
-Duefi=1 \
|
||||
-m32 \
|
||||
-march=i386 \
|
||||
-mabi=sysv \
|
||||
-fpie
|
||||
|
||||
INTERNAL_CFLAGS += \
|
||||
@ -98,6 +101,7 @@ ifeq ($(TARGET), uefi)
|
||||
-Duefi=1 \
|
||||
-m64 \
|
||||
-march=x86-64 \
|
||||
-mabi=sysv \
|
||||
-I../gnu-efi/inc \
|
||||
-I../gnu-efi/inc/x86_64 \
|
||||
-fpie \
|
||||
@ -110,6 +114,7 @@ ifeq ($(TARGET), uefi32)
|
||||
-Duefi=1 \
|
||||
-m32 \
|
||||
-march=i386 \
|
||||
-mabi=sysv \
|
||||
-I../gnu-efi/inc \
|
||||
-I../gnu-efi/inc/ia32 \
|
||||
-fpie
|
||||
|
@ -21,6 +21,7 @@ INTERNALCFLAGS := \
|
||||
-ffreestanding \
|
||||
-fno-stack-protector \
|
||||
-fno-pic -fpie \
|
||||
-mabi=sysv \
|
||||
-mno-80387 \
|
||||
-mno-mmx \
|
||||
-mno-3dnow \
|
||||
|
Loading…
Reference in New Issue
Block a user