From: Tom Rini Date: Wed, 5 Apr 2023 23:48:53 +0000 (-0400) Subject: clang: Don't look for libgcc X-Git-Tag: v2023.07~77^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ad6850d2b4ad0de6eedffc781d8152ec736e234;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Simon Glass --- diff --git a/Makefile b/Makefile index 9d8ec9f..166acba 100644 --- 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