diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/elf/Makefile b/elf/Makefile index 1c5b169..d1b3c5a 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -837,28 +837,26 @@ $(objpfx)tst-dlmodcount: $(libdl) $(objpfx)tst-dlmodcount.out: $(test-modules) check-data := $(firstword $(wildcard \ - $(foreach M,$(config-machine) $(base-machine),\ - ../scripts/data/localplt-$M-$(config-os).data))) -ifneq (,$(check-data)) + $(patsubst %,../scripts/data/localplt-%.data,\ + $(addsuffix -$(config-os),\ + $(config-machine) $(base-machine))\ + generic))) tests: $(objpfx)check-localplt.out ifeq ($(have-thread-library),yes) thread-dso := $(filter-out %_nonshared.a, $(shared-thread-library)) endif -$(objpfx)check-localplt.out: $(objpfx)check-localplt $(common-objpfx)libc.so \ - $(common-objpfx)math/libm.so $(thread-dso) \ - $(common-objpfx)rt/librt.so \ - $(common-objpfx)dlfcn/libdl.so \ +$(objpfx)check-localplt.out: $(objpfx)check-localplt \ + $(common-objpfx)libc.so \ + $(common-objpfx)math/libm.so $(thread-dso) \ + $(common-objpfx)rt/librt.so \ + $(common-objpfx)dlfcn/libdl.so \ $(check-data) - $(objpfx)check-localplt $(common-objpfx)libc.so \ - $(common-objpfx)math/libm.so $(thread-dso) \ - $(common-objpfx)rt/librt.so \ - $(common-objpfx)dlfcn/libdl.so | \ + $(dir $<)$(notdir $<) $(filter-out $< $(check-data),$^) | \ LC_ALL=C sort | \ diff -u $(check-data) - > $@ endif -endif $(objpfx)tst-dlopenrpathmod.so: $(libdl) $(objpfx)tst-dlopenrpath: $(objpfx)tst-dlopenrpathmod.so $(libdl) |