:: commit 5619c190c9fcd370f4ae753c247d355a2e1d2c8c

mintsuki <mintsuki@protonmail.com> — 2023-08-30 02:39

parents: 2542a28e64

build: Drop -mabi=sysv for x86 for clang 16

diff --git a/common/GNUmakefile b/common/GNUmakefile
index 2c7473aa..8699d404 100644
--- a/common/GNUmakefile
+++ b/common/GNUmakefile
@@ -63,7 +63,6 @@ ifeq ($(TARGET),bios)
         -fno-PIC \
         -m32 \
         -march=i686 \
-        -mabi=sysv \
         -mno-80387
     override CPPFLAGS_FOR_TARGET := \
         $(CPPFLAGS_FOR_TARGET) \
@@ -76,7 +75,6 @@ ifeq ($(TARGET),uefi-x86-64)
         -fshort-wchar \
         -m64 \
         -march=x86-64 \
-        -mabi=sysv \
         -mno-80387 \
         -mno-mmx \
         -mno-sse \
@@ -95,7 +93,6 @@ ifeq ($(TARGET),uefi-ia32)
         -fshort-wchar \
         -m32 \
         -march=i686 \
-        -mabi=sysv \
         -mno-80387
     override CPPFLAGS_FOR_TARGET := \
         -I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \
diff --git a/decompressor/GNUmakefile b/decompressor/GNUmakefile
index 071aca08..953c4c00 100644
--- a/decompressor/GNUmakefile
+++ b/decompressor/GNUmakefile
@@ -38,7 +38,6 @@ override CFLAGS_FOR_TARGET += \
     -fno-PIC \
     -m32 \
     -march=i686 \
-    -mabi=sysv \
     -mno-80387
 
 override CPPFLAGS_FOR_TARGET := \
diff --git a/test/GNUmakefile b/test/GNUmakefile
index ae3f4b13..66b8e8e7 100644
--- a/test/GNUmakefile
+++ b/test/GNUmakefile
@@ -64,7 +64,6 @@ ifneq ($(findstring x86_64,$(CC_FOR_TARGET)),)
 override CFLAGS += \
     -m64 \
     -march=x86-64 \
-    -mabi=sysv \
     -mgeneral-regs-only \
     -mno-red-zone
 endif
@@ -94,7 +93,6 @@ override CFLAGS_MB := \
     -fno-PIC \
     -m32 \
     -march=i686 \
-    -mabi=sysv \
     -mgeneral-regs-only \
     -I../freestanding-headers \
     -I. \
tab: 248 wrap: offon