diff options
-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) |