about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig
index 17967abda0..18f978b900 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -404,8 +404,7 @@ ifeq (yes,$(build-shared))
 # run the linked programs.
 link-libc = -Wl,-rpath-link=$(rpath-link) \
 	    $(common-objpfx)libc.so$(libc.so-version) \
-	    $(elfobjdir)/$(rtld-installed-name) \
-	    $(common-objpfx)libc_nonshared.a $(gnulib)
+	    $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
 # Choose the default search path for the dynamic linker based on
 # where we will install libraries.
 ifneq ($(libdir),$(slibdir))