]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - Makeconfig
Use --{start,end}-group to handle circular dependency between libgcc.a and libc.a.
[thirdparty/glibc.git] / Makeconfig
index 0c4c75aefa9d6fd73d576bec44cbdfa9de01abfa..4d914589d70303cecf607723d34c830a6e32d4bd 100644 (file)
@@ -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...