diff options
-rw-r--r-- | spl/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spl/Makefile b/spl/Makefile index 8946d827e4..476a5e65d1 100644 --- a/spl/Makefile +++ b/spl/Makefile @@ -65,6 +65,12 @@ ifeq ($(SOC),tegra20) LIBS-y += arch/$(ARCH)/cpu/$(SOC)-common/lib$(SOC)-common.o endif +# Add GCC lib +ifeq ("$(USE_PRIVATE_LIBGCC)", "yes") +PLATFORM_LIBGCC = $(SPLTREE)/arch/$(ARCH)/lib/libgcc.o +PLATFORM_LIBS := $(filter-out %/libgcc.o, $(filter-out -lgcc, $(PLATFORM_LIBS))) $(PLATFORM_LIBGCC) +endif + START := $(addprefix $(SPLTREE)/,$(START)) LIBS := $(addprefix $(SPLTREE)/,$(sort $(LIBS-y))) |