aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-12 21:51:52 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-12 21:51:52 +0000
commitefd56f5391638567bef3755a28be639d1a763167 (patch)
treeeb7b1fd34a25524948b684d1312744cf59ed2c6a /elf/Makefile
parent2ad2e1e702f5a949f58e039f7166b0920503ce39 (diff)
downloadglibc-efd56f5391638567bef3755a28be639d1a763167.zip
glibc-efd56f5391638567bef3755a28be639d1a763167.tar.gz
glibc-efd56f5391638567bef3755a28be639d1a763167.tar.bz2
Update.
* elf/Makefile (tests): Add rules to build and run check-textrel. * elf/check-textrel.c: New file.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 16c947e..5d9dabd 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -568,3 +568,17 @@ $(objpfx)tst-array3.out: $(objpfx)tst-array3
--library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
$(objpfx)tst-array3 > $@
cmp $@ tst-array1.exp > /dev/null
+
+
+check-textrel-CFLAGS = -O
+$(objpfx)check-textrel: check-textrel.c
+ $(native-compile)
+
+ifeq (yes,$(build-shared))
+tests: $(objpfx)check-textrel.out
+
+$(objpfx)check-textrel.out: $(objpfx)check-textrel
+ $(dir $<)$(notdir $<) $(common-objpfx)libc.so \
+ $(wildcard $(common-objpfx)/*/lib*.so) > $@
+generated += check-textrel check-textrel.out
+endif