diff --git a/decompressor/Makefile b/decompressor/Makefile index f1e21fd8..26cfc788 100644 --- a/decompressor/Makefile +++ b/decompressor/Makefile @@ -25,6 +25,7 @@ CFLAGS = -Os -pipe -Wall -Wextra -Werror INTERNAL_CFLAGS = \ -m32 \ -march=i386 \ + -mabi=sysv \ -std=gnu11 \ -ffreestanding \ -fno-stack-protector \ diff --git a/stage23/Makefile b/stage23/Makefile index 9dd4043c..752fe19b 100644 --- a/stage23/Makefile +++ b/stage23/Makefile @@ -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 diff --git a/test/Makefile b/test/Makefile index 6dcd3262..808862cc 100644 --- a/test/Makefile +++ b/test/Makefile @@ -21,6 +21,7 @@ INTERNALCFLAGS := \ -ffreestanding \ -fno-stack-protector \ -fno-pic -fpie \ + -mabi=sysv \ -mno-80387 \ -mno-mmx \ -mno-3dnow \