about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 1fab920a0a..65b7f0a1bc 100644
--- a/Makerules
+++ b/Makerules
@@ -1090,9 +1090,9 @@ $(objpfx)%.dynsym: $(objpfx)%.so
 tests: $(patsubst %.so,$(objpfx)%.symlist,$(install-lib.so-versioned))
 generated += $(install-lib.so-versioned:.so=.symlist)
 
-ifndef subdir
-tests: $(objpfx)libc.symlist
-generated += libc.symlist
+ifeq ($(subdir),elf)
+tests: $(common-objpfx)libc.symlist
+common-generated += libc.symlist
 endif
 endif