about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/elf/Makefile b/elf/Makefile
index fedbb20155..5cd78c2f83 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -828,11 +828,21 @@ check-data := $(firstword $(wildcard \
 ifneq (,$(check-data))
 tests: $(objpfx)check-localplt.out
 
+ifeq ($(have-thread-library),yes)
+thread-dso := $(filter-out %_nonshared.a, $(shared-thread-library))
+endif
+
 $(objpfx)check-localplt.out: $(objpfx)check-localplt $(common-objpfx)libc.so \
-			     $(common-objpfx)math/libm.so $(check-data)
+			     $(common-objpfx)math/libm.so $(thread-dso) \
+			     $(common-objpfx)rt/librt.so \
+			     $(common-objpfx)dlfcn/libdl.so \
+			     $(check-data)
 	$(objpfx)check-localplt $(common-objpfx)libc.so \
-				$(common-objpfx)math/libm.so | LC_ALL=C sort |\
-	  diff -u $(check-data) -
+				$(common-objpfx)math/libm.so $(thread-dso) \
+				$(common-objpfx)rt/librt.so \
+				$(common-objpfx)dlfcn/libdl.so | \
+	  LC_ALL=C sort | \
+	  diff -u $(check-data) - > $@
 endif
 endif