summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-03-06 14:16:36 +0000
committerEric Andersen <andersen@codepoet.org>2003-03-06 14:16:36 +0000
commit6f2da98c8c7c54e38ed8ba02a86b997d2046289c (patch)
tree1fbd06ae70f86dc074e5493b1fc6dbb3b47f249f /libc/sysdeps/linux/arm/Makefile
parente9a706a4144834a8e50e8dd371bc796cb4fbc854 (diff)
Make profiling on arm work
Diffstat (limited to 'libc/sysdeps/linux/arm/Makefile')
-rw-r--r--libc/sysdeps/linux/arm/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile
index efb9139e9..02a0cedc1 100644
--- a/libc/sysdeps/linux/arm/Makefile
+++ b/libc/sysdeps/linux/arm/Makefile
@@ -21,7 +21,8 @@ include $(TOPDIR)Rules.mak
ASFLAGS=$(CFLAGS)
CRT0_SRC = crt0.S
-CRT0_OBJ = crt0.o crt1.o
+CRT0_OBJ = crt0.o crt1.o gcrt1.o
+CRT0_DEPS=gmon-start.S
SSRC=__longjmp.S vfork.S clone.S setjmp.S bsd-setjmp.S \
bsd-_setjmp.S sigrestorer.S
@@ -53,8 +54,16 @@ $(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:
rm -f *.[oa] *~ core
rm -f bits/sysnum.h