2008-05-21 Roland McGrath <roland@redhat.com>
[kopensolaris-gnu/glibc.git] / elf / Makefile
index 861485d..e509153 100644 (file)
@@ -841,10 +841,14 @@ $(objpfx)tst-dlmodcount: $(libdl)
 $(objpfx)tst-dlmodcount.out: $(test-modules)
 
 check-data := $(firstword $(wildcard \
-               $(patsubst %,../scripts/data/localplt-%.data,\
-                          $(addsuffix -$(config-os),\
-                                      $(config-machine) $(base-machine))\
-                          generic)))
+               $(foreach D,$(add-ons) scripts/data,\
+                         $(patsubst %,$(..)$D/localplt-%.data,\
+                                    $(abi-name) \
+                                    $(addsuffix -$(config-os),\
+                                                $(config-machine) \
+                                                $(base-machine)) \
+                          generic))))
+
 tests: $(objpfx)check-localplt.out
 
 ifeq ($(have-thread-library),yes)