mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-16 16:23:14 +00:00
ebc87d0daf
sdl.c is compiled against the SDL library. Trying to redefine wchar_t with -fshort-wchar is not necessary and leads to build failures when compiling against musl. Cc: Milan P. Stanić <mps@arvanta.net> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
13 lines
450 B
Makefile
13 lines
450 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o
|
|
head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o
|
|
libs-y += arch/sandbox/cpu/
|
|
libs-y += arch/sandbox/lib/
|
|
|
|
# sdl.c fails to compile with -fshort-wchar using musl.
|
|
cmd_cc_sdl.o = $(CC) $(filter-out -nostdinc -fshort-wchar, \
|
|
$(patsubst -I%,-idirafter%,$(c_flags))) -fno-lto -c -o $@ $<
|
|
|
|
$(obj)/sdl.o: $(src)/sdl.c FORCE
|
|
$(call if_changed_dep,cc_sdl.o)
|