]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix malloc threaded tests link on non-Linux
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 22 Mar 2016 08:58:48 +0000 (09:58 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sat, 12 Nov 2016 05:44:24 +0000 (00:44 -0500)
* malloc/Makefile ($(objpfx)tst-malloc-backtrace,
$(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
$(shared-thread-library) instead of hardcoding the path to libpthread.

(cherry picked from commit b87e41378beca3c98ec3464d64835e66cc788497)
(cherry picked from commit a5c2f42566460fc73755c768e8e1c59dbd5a4bb2)

malloc/Makefile

index 360288bef847b6d4a975732b0611d084185c5854..59d4264ae0c50bf81fb92d6683e60f00963ced83 100644 (file)
@@ -46,12 +46,9 @@ extra-libs-others = $(extra-libs)
 libmemusage-routines = memusage
 libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes))
 
-$(objpfx)tst-malloc-backtrace: $(common-objpfx)nptl/libpthread.so \
-                              $(common-objpfx)nptl/libpthread_nonshared.a
-$(objpfx)tst-malloc-thread-exit: $(common-objpfx)nptl/libpthread.so \
-                              $(common-objpfx)nptl/libpthread_nonshared.a
-$(objpfx)tst-malloc-thread-fail: $(common-objpfx)nptl/libpthread.so \
-                              $(common-objpfx)nptl/libpthread_nonshared.a
+$(objpfx)tst-malloc-backtrace: $(shared-thread-library)
+$(objpfx)tst-malloc-thread-exit: $(shared-thread-library)
+$(objpfx)tst-malloc-thread-fail: $(shared-thread-library)
 
 # These should be removed by `make clean'.
 extra-objs = mcheck-init.o libmcheck.a