summaryrefslogtreecommitdiff
path: root/debug/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-16 23:08:48 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-16 23:08:48 +0000
commit6ce7ab198a85eb94b3ba9733a2b824203611e151 (patch)
treee55a5c7563a28e0d97b6edd50887cc236a4636f6 /debug/Makefile
parenteb0e1178c54f29cc51c5a035ea035f634d348fd1 (diff)
downloadglibc-6ce7ab198a85eb94b3ba9733a2b824203611e151.tar.gz
Update.
1998-07-16 23:06 Ulrich Drepper <drepper@cygnus.com> * debug/Makefile (distribute): Add sigcontextinfo.h. Add rules to generate and install catchsegv. * debug/catchsegv.sh: New file.
Diffstat (limited to 'debug/Makefile')
-rw-r--r--debug/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/debug/Makefile b/debug/Makefile
index 3ee7a9f94d..0826b9983a 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -22,6 +22,7 @@
subdir := debug
headers := execinfo.h
+distribute = sigcontextinfo.h
routines := backtrace backtracesyms backtracesymsfd
@@ -29,14 +30,24 @@ CFLAGS-backtrace.c = -fno-omit-frame-pointer
tests = backtrace-tst
-extra-libs = libSegFault
+extra-libs = libSegFault
extra-libs-others = $(extra-libs)
libSegFault-routines = segfault
libSegFault-inhibit-o = $(filter-out .os,$(object-suffixes))
+distribute += catchsegv.sh
+install-bin = catchsegv
+generated = catchsegv
+
include ../Rules
+$(objpfx)catchsegv: catchsegv.sh $(common-objpfx)soversions.mk \
+ $(common-objpfx)config.make
+ sed 's/@VERSION@/$(version)/;s/@SLIB@/$(slibdir)/' $< > $@.new
+ chmod 555 $@.new
+ mv -f $@.new $@
+
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
# This ensures they will load libc.so for needed symbols if loaded by
# a statically-linked program that hasn't already loaded it.