mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 20:56:12 +02:00
clang: Don't look for libgcc
In the case of using clang to build, and having not already enabled the private libgcc, do not look for it, as it will not be found nor required. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fd0712acce
commit
4ad6850d2b
2
Makefile
2
Makefile
@ -894,8 +894,10 @@ u-boot-main := $(libs-y)
|
||||
ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y)
|
||||
PLATFORM_LIBGCC = arch/$(ARCH)/lib/lib.a
|
||||
else
|
||||
ifndef CONFIG_CC_IS_CLANG
|
||||
PLATFORM_LIBGCC := -L $(shell dirname `$(CC) $(c_flags) -print-libgcc-file-name`) -lgcc
|
||||
endif
|
||||
endif
|
||||
PLATFORM_LIBS += $(PLATFORM_LIBGCC)
|
||||
|
||||
ifdef CONFIG_CC_COVERAGE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user