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/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 6142848be9..e98fa40e0d 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -78,6 +78,9 @@ install-rootsbin += ldconfig
 endif
 
 tests = loadtest restest1 preloadtest loadfail
+modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
+		testobj1_1 failobj
+extra-objs += $(modules-names:=.os)
 
 ifeq ($(build-shared),yes)
 libdl = $(objpfx)libdl.so$(libdl.so-version)
@@ -206,8 +209,6 @@ $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \
 
 $(objpfx)sprof: $(libdl)
 
-modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
-		testobj1_1 failobj
 test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
 generated += $(test-modules)