diff options
author | peter <peter@FreeBSD.org> | 2004-05-18 22:49:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-05-18 22:49:15 +0000 |
commit | 0c866f61b2570835ad15e1e36239b7c9f6e2ba16 (patch) | |
tree | b1e3b151b0bfb2d6b61948bf3aae8555f950e6c9 /lib/libc/gmon/Makefile.inc | |
parent | 7225dd455fca87e84be8fe563bc428eb9f234bc6 (diff) | |
download | FreeBSD-src-0c866f61b2570835ad15e1e36239b7c9f6e2ba16.zip FreeBSD-src-0c866f61b2570835ad15e1e36239b7c9f6e2ba16.tar.gz |
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.
Diffstat (limited to 'lib/libc/gmon/Makefile.inc')
-rw-r--r-- | lib/libc/gmon/Makefile.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/gmon/Makefile.inc b/lib/libc/gmon/Makefile.inc index 36d47e5..535e7de 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 |