From owner-p4-projects@FreeBSD.ORG Tue May 18 14:42:52 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B378116A4D0; Tue, 18 May 2004 14:42:51 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85D0516A4CE for ; Tue, 18 May 2004 14:42:51 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E88D544051 for ; Tue, 18 May 2004 14:06:09 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i4IL3VGe024708 for ; Tue, 18 May 2004 14:03:31 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i4IL3VK0024705 for perforce@freebsd.org; Tue, 18 May 2004 14:03:31 -0700 (PDT) (envelope-from peter@freebsd.org) Date: Tue, 18 May 2004 14:03:31 -0700 (PDT) Message-Id: <200405182103.i4IL3VK0024705@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 53008 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 21:42:52 -0000 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