elf/tests: Make thrlock and noload depend on libm
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 8 Jul 2021 08:09:19 +0000 (13:39 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 8 Jul 2021 08:09:19 +0000 (13:39 +0530)
Both tests try to dlopen libm.so at runtime, so make them depend on it
so that they're executed if libm.so has been updated.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/Makefile

index b1e01d951699bf118e74729944577eae42965b59..4b320e8b3a84f6234abacbccdd8d22ddd91e5ac7 100644 (file)
@@ -1281,6 +1281,8 @@ tst-leaks1-ENV = MALLOC_TRACE=$(objpfx)tst-leaks1.mtrace
 tst-leaks1-static-ENV = MALLOC_TRACE=$(objpfx)tst-leaks1-static.mtrace
 
 $(objpfx)tst-thrlock: $(shared-thread-library)
+$(objpfx)tst-thrlock.out: $(libm)
+$(objpfx)tst-noload.out: $(libm)
 
 tst-tst-dlopen-tlsmodid-no-pie = yes
 $(objpfx)tst-dlopen-tlsmodid: $(shared-thread-library)