]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
clang: Don't look for libgcc
authorTom Rini <trini@konsulko.com>
Wed, 5 Apr 2023 23:48:53 +0000 (19:48 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
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>
Makefile

index 9d8ec9f8655330a8062c50c1922a03374cf7b4a1..166acba270321f81db4a1c3b5d9175e6da00628a 100644 (file)
--- a/Makefile
+++ b/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