summaryrefslogtreecommitdiff
path: root/linuxthreads/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/Makefile')
-rw-r--r--linuxthreads/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxthreads/Makefile b/linuxthreads/Makefile
index a3bd5d16ae..d88af80f5a 100644
--- a/linuxthreads/Makefile
+++ b/linuxthreads/Makefile
@@ -76,7 +76,8 @@ CFLAGS-unload.c += -DPREFIX=\"$(objpfx)\"
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
# This ensures they will load libc.so for needed symbols if loaded by
# a statically-linked program that hasn't already loaded it.
-$(objpfx)libpthread.so: $(common-objpfx)libc.so
+$(objpfx)libpthread.so: $(common-objpfx)libc.so \
+ $(common-objpfx)libc_nonshared.a
# Make sure we link with the thread library.
ifeq ($(build-shared),yes)