From e9a706a4144834a8e50e8dd371bc796cb4fbc854 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 6 Mar 2003 13:57:31 +0000 Subject: Patch from Stefan Allius to finish off the last required bits for gmon profiling support for the SuperH target. --- libc/sysdeps/linux/sh/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/sh/Makefile') diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index 425335f7b..9a4560336 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -24,7 +24,8 @@ CFLAGS+= -I../ SFLAGS= $(CFLAGS) -D__ASSEMBLER__ CRT0_SRC = crt0.S -CRT0_OBJ = crt0.o crt1.o +CRT0_OBJ = crt0.o crt1.o gcrt1.o +CRT0_DEPS=gmon-start.S SSRC=setjmp.S __longjmp.S vfork.S clone.S SOBJS=$(patsubst %.S,%.o, $(SSRC)) @@ -55,6 +56,13 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +ifeq ($(strip $(UCLIBC_PROFILING)),y) +SAFECFLAGS := $(subst -g,,$(CFLAGS)) +gmon-start.S: ../common/gmon-start.c + $(CC) $(SAFECFLAGS) -c $< -S -o $*.S +gcrt1.o: $(CRT0_DEPS) +endif + headers: clean: -- cgit v1.2.3