:: commit 0125dcd67a8a672276f7d566f740d4e0c83b7a56

mintsuki <mintsuki@protonmail.com> — 2023-05-27 14:55

parents: 844386487d

build/uefi: Pass -fshort-wchar to CC

diff --git a/common/GNUmakefile b/common/GNUmakefile
index f1ffbe16..c06c6e8a 100644
--- a/common/GNUmakefile
+++ b/common/GNUmakefile
@@ -84,6 +84,7 @@ endif
 ifeq ($(TARGET),uefi-x86-64)
     override CFLAGS_FOR_TARGET += \
         -fPIE \
+        -fshort-wchar \
         -m64 \
         -march=x86-64 \
         -mabi=sysv \
@@ -103,6 +104,7 @@ endif
 ifeq ($(TARGET),uefi-ia32)
     override CFLAGS_FOR_TARGET += \
         -fPIE \
+        -fshort-wchar \
         -m32 \
         -march=i686 \
         -mabi=sysv \
@@ -117,6 +119,7 @@ endif
 ifeq ($(TARGET),uefi-aarch64)
     override CFLAGS_FOR_TARGET += \
         -fPIE \
+        -fshort-wchar \
         -mgeneral-regs-only
     override CPPFLAGS_FOR_TARGET := \
         -I'$(call SHESCAPE,$(BUILDDIR))/limine-efi/inc' \
tab: 248 wrap: offon