aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gmon
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-05-18 22:49:15 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-05-18 22:49:15 +0000
commitb320e7fae77f77678f361e20672a16740b7f6d31 (patch)
treeb1e3b151b0bfb2d6b61948bf3aae8555f950e6c9 /lib/libc/gmon
parentaa588a66d1934ac19746685843fe5ff4ea9f05f5 (diff)
downloadsrc-b320e7fae77f77678f361e20672a16740b7f6d31.tar.gz
src-b320e7fae77f77678f361e20672a16740b7f6d31.zip
For amd64, explicitly compile mcount.po, rather than copying mcount.o. We
need to compile it with -fno-omit-frame-pointers since the mcount code depends on that, and by default it omits them without -pg.
Notes
Notes: svn path=/head/; revision=129407
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r--lib/libc/gmon/Makefile.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc
index 36d47e51acdf..535e7dee2557 100644
--- a/lib/libc/gmon/Makefile.inc
+++ b/lib/libc/gmon/Makefile.inc
@@ -10,6 +10,12 @@ MAN+= moncontrol.3
MLINKS+=moncontrol.3 monstartup.3
+.if ${MACHINE_ARCH} == amd64
+# mcount needs to be compiled with frame pointers and without profiling
+mcount.po: mcount.c
+ ${CC} ${CFLAGS} -fno-omit-frame-pointer -c ${.IMPSRC} -o ${.TARGET}
+.else
# mcount cannot be compiled with profiling
mcount.po: mcount.o
cp mcount.o mcount.po
+.endif