From b9af13014f3a45e26bff5b554b08979cb89b68a9 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Thu, 5 May 2011 15:35:46 -0700 Subject: [PATCH] Use --{start,end}-group to handle circular dependency between libgcc.a and libc.a. --- ChangeLog | 5 +++++ Makeconfig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7f2e75c..43b0b61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-05 Paul Pluzhnikov + + * Makeconfig (link-libc-static): Use --{start,end}-group to handle + circular dependency between libgcc.a and libc.a. + 2011-05-05 Andreas Schwab * resolv/netdb.h: Don't include . diff --git a/Makeconfig b/Makeconfig index 0c4c75a..4d91458 100644 --- a/Makeconfig +++ b/Makeconfig @@ -531,7 +531,7 @@ endif # The static libraries. ifeq (yes,$(build-static)) -link-libc-static = $(common-objpfx)libc.a $(static-gnulib) $(common-objpfx)libc.a +link-libc-static = -Wl,--start-group $(common-objpfx)libc.a $(static-gnulib) -Wl,--end-group else ifeq (yes,$(build-shared)) # We can try to link the programs with lib*_pic.a... -- 2.7.4