diff options
author | Tom Rini <trini@konsulko.com> | 2023-04-05 19:48:53 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 15:31:27 -0400 |
commit | 4ad6850d2b4ad0de6eedffc781d8152ec736e234 (patch) | |
tree | 476e5d59c2a4a974344ff6fe1d35a1fe2b38ed6a | |
parent | fd0712acce928c7966c172b8014ca8007deb457c (diff) |
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>
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |