Fix elf/loadfail test build dependencies
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Jan 2022 10:51:49 +0000 (10:51 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Jan 2022 18:24:42 +0000 (18:24 +0000)
There was no direct or indirect make dependency on testobj3.so so the
test could fail with

/B/elf/loadfail: failed to load shared object: testobj3.so: cannot open
 shared object file: No such file or directory

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
elf/Makefile

index 718e826..1fa1a51 100644 (file)
@@ -1468,7 +1468,9 @@ preloadtest-ENV = \
 
 LDFLAGS-loadfail = -rdynamic
 
-$(objpfx)loadfail.out: $(objpfx)failobj.so
+$(objpfx)loadfail.out: $(objpfx)failobj.so $(objpfx)testobj1.so \
+                      $(objpfx)testobj2.so $(objpfx)testobj3.so \
+                      $(objpfx)testobj4.so $(objpfx)testobj5.so
 
 LDFLAGS-multiload = -rdynamic
 CFLAGS-multiload.c += -DOBJDIR=\"$(elf-objpfx)\"