From 6676a3a615a41e8b8e344139efe0eacac52e5bce Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sat, 27 May 2023 16:55:49 +0200 Subject: [PATCH] build/uefi: Pass -fshort-wchar to CC --- common/GNUmakefile | 3 +++ 1 file changed, 3 insertions(+) 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' \