From cab30d75a34782ea5ea0017238022da77494ce5f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 7 Oct 1999 07:25:16 +0000 Subject: Update. 1999-10-07 Ulrich Drepper * debug/Makefile (install-bin): Add pcprofiledump and xtrace. Add rules for both programs. * debug/pcprofiledump.c: New file. * debug/xtrace.sh: New file. * debug/pcprofile.c: Allow creating output file. Add magic signature to let reader recognize file format. --- debug/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'debug/Makefile') diff --git a/debug/Makefile b/debug/Makefile index d13be3d..0f465ff 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -39,12 +39,14 @@ libSegFault-inhibit-o = $(filter-out .os,$(object-suffixes)) libpcprofile-routines = pcprofile libpcprofile-inhibit-o = $(filter-out .os,$(object-suffixes)) +install-bin = pcprofiledump xtrace + include ../Makeconfig distribute += catchsegv.sh ifeq ($(elf),yes) ifeq ($(build-shared),yes) -install-bin = catchsegv +install-bin += catchsegv endif endif generated = catchsegv @@ -57,6 +59,15 @@ $(objpfx)catchsegv: catchsegv.sh $(common-objpfx)soversions.mk \ chmod 555 $@.new mv -f $@.new $@ +$(objpfx)pcprofiledump: $(objpfx)pcprofiledump.o + $(LINK.o) -o $@ $^ + +$(objpfx)xtrace: xtrace.sh + rm -f $@.new + sed -e 's|@BASH@|$(BASH)|' -e 's|@VERSION@|$(version)|' \ + -e 's|@LIBDIR@|$(libdir)|' -e 's|@BINDIR@|$(bindir)|' $^ > $@.new \ + && rm -f $@ && mv $@.new $@ && chmod +x $@ + # 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. -- cgit v1.1