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' \