Patchwork [U-Boot] Makefile: Fix build with USE_PRIVATE_LIBGCC

login
register
mail settings
Submitter Matthias Weisser
Date Nov. 18, 2010, 8:35 a.m.
Message ID <1290069309-12910-1-git-send-email-weisserm@arcor.de>
Download mbox | patch
Permalink /patch/72064/
State Accepted
Commit 635d1b3e1b885267de90d100402ba7748fdd9bc5
Headers show

Comments

Matthias Weisser - Nov. 18, 2010, 8:35 a.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Wolfgang Denk - Nov. 18, 2010, 8:48 a.m.
Dear Matthias Weisser,

In message <1290069309-12910-1-git-send-email-weisserm@arcor.de> you wrote:
> 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 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/Makefile b/Makefile
index af33f08..b4aae89 100644
--- 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