diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-27 15:05:12 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-27 15:05:12 -0400 |
commit | b783b0c6e660e71629cd814f8e9dbb8e890c5c2d (patch) | |
tree | f950ba7ee6eec04f80d96d05c6486f02e3946968 | |
parent | 01c88e3dcd667281cf3aa6f6b47f90900177aff9 (diff) | |
download | u-boot-WIP/test-drop-libgcc.zip u-boot-WIP/test-drop-libgcc.tar.gz u-boot-WIP/test-drop-libgcc.tar.bz2 |
USE_PRIVATE_LIBGCC: Filter out using libgcc as an alternativeWIP/test-drop-libgcc
When we don't have USE_PRIVATE_LIBGCC enabled, do not fall back to
trying to include libgcc.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | scripts/Makefile.spl | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -888,8 +888,6 @@ u-boot-main := $(libs-y) # Add GCC lib ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y) PLATFORM_LIBGCC = arch/$(ARCH)/lib/lib.a -else -PLATFORM_LIBGCC := -L $(shell dirname `$(CC) $(c_flags) -print-libgcc-file-name`) -lgcc endif PLATFORM_LIBS += $(PLATFORM_LIBGCC) diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl index 0b3a51d..b653b97 100644 --- a/scripts/Makefile.spl +++ b/scripts/Makefile.spl @@ -131,7 +131,7 @@ libs-y := $(patsubst %/, %/built-in.o, $(libs-y)) # Add GCC lib ifeq ($(CONFIG_USE_PRIVATE_LIBGCC),y) PLATFORM_LIBGCC = arch/$(ARCH)/lib/lib.a -PLATFORM_LIBS := $(filter-out %/lib.a, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC) +PLATFORM_LIBS := $(filter-out %/lib.a, $(PLATFORM_LIBS)) $(PLATFORM_LIBGCC) endif u-boot-spl-init := $(head-y) |