Skip to content

Commit

Permalink
Make.defaults: disable arm32 warnings about wchar_t
Browse files Browse the repository at this point in the history
Signed-off-by; Steve McIntyre <93sam@debian.org>
  • Loading branch information
steve-mcintyre authored and Steve McIntyre committed Nov 4, 2023
1 parent 227435a commit fd5f0b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ EFI_ARCHES ?= aa64 ia32 x64
enabled = $(if $(filter undefined,$(origin $(1))),$(3),$(2))

HOSTARCH = $(shell uname -m | sed s,i[3456789]86,ia32,)
ARCH := $(shell uname -m | sed s,i[3456789]86,ia32,)
ARCH := $(shell uname -m | sed s,i[3456789]86,ia32, | sed s,arm.*,arm,)


PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config
Expand Down Expand Up @@ -73,6 +73,9 @@ gcc_ccldflags = -fno-merge-constants \
-Wl,--fatal-warnings,--no-allow-shlib-undefined,--default-symver \
-Wl,-O2 -Wl,--no-undefined-version -Wl,-z,relro,-z,now \
-Wl,--no-add-needed,--no-copy-dt-needed-entries,--as-needed -pie
ifeq ($(ARCH),arm)
gcc_ccldflags += -Wl,--no-wchar-size-warning
endif
ccldflags = $(cflags) $(CCLDFLAGS) $(LDFLAGS) \
$(if $(filter $(CCLD),clang),$(clang_ccldflags),) \
$(if $(filter $(CCLD),gcc),$(gcc_ccldflags),) \
Expand Down

0 comments on commit fd5f0b4

Please sign in to comment.