about summary refs log tree commit diff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makerules b/Makerules
index 1b57e29553..17d93f8674 100644
--- a/Makerules
+++ b/Makerules
@@ -1235,15 +1235,18 @@ check-abi: subdir_check-abi
 update-abi: subdir_update-abi
 endif
 
-# Enable this when all the .abilist files are in place.
-#tests: check-abi
-
 ifeq ($(subdir),elf)
 check-abi: check-abi-libc
 update-abi: update-abi-libc
 common-generated += libc.symlist
 endif
 
+ifeq ($(build-shared),yes)
+ifdef subdir
+tests: check-abi
+endif
+endif
+
 endif
 
 # There's no good place to put this - here will do.