Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2004 14:03:31 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 53008 for review
Message-ID:  <200405182103.i4IL3VK0024705@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=53008

Change 53008 by peter@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405182103.i4IL3VK0024705>