]> git.sur5r.net Git - u-boot/commitdiff
Makefile: Fix build with USE_PRIVATE_LIBGCC
authorMatthias Weisser <weisserm@arcor.de>
Thu, 18 Nov 2010 08:35:09 +0000 (09:35 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 18 Nov 2010 08:47:11 +0000 (09:47 +0100)
If USE_PRIVATE_LIBGCC is set the yes building fails with a missing
libgcc.a As we use partial linking now it is libgcc.o now.

Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Makefile

index af33f085f91c154453c73b11481b403320f3452f..b4aae898abd4234574a3c281c26b773bb9ba2945 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -269,7 +269,7 @@ LIBBOARD := $(addprefix $(obj),$(LIBBOARD))
 # Add GCC lib
 ifdef USE_PRIVATE_LIBGCC
 ifeq ("$(USE_PRIVATE_LIBGCC)", "yes")
-PLATFORM_LIBGCC = -L $(OBJTREE)/arch/$(ARCH)/lib -lgcc
+PLATFORM_LIBGCC = $(OBJTREE)/arch/$(ARCH)/lib/libgcc.o
 else
 PLATFORM_LIBGCC = -L $(USE_PRIVATE_LIBGCC) -lgcc
 endif