PERFORCE change 53008 for review
Peter Wemm
peter at FreeBSD.org
Tue May 18 14:42:52 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=53008
Change 53008 by peter at peter_daintree on 2004/05/18 14:02:41
try and make mcount.po the right way. It matters a big
deal since -pg turnes off omit-frame-pointers. ie: we can't
reuse mcount.o because it is missing the argument to turn frame
pointers back on.
Affected files ...
.. //depot/projects/hammer/lib/libc/gmon/Makefile.inc#5 edit
Differences ...
==== //depot/projects/hammer/lib/libc/gmon/Makefile.inc#5 (text+ko) ====
@@ -10,6 +10,12 @@
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
More information about the p4-projects
mailing list