From owner-freebsd-ports@FreeBSD.ORG Wed May 2 10:39:50 2007 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7FD116A400 for ; Wed, 2 May 2007 10:39:50 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from smtp5.jp.viruscheck.net (smtp5.jp.viruscheck.net [154.33.69.56]) by mx1.freebsd.org (Postfix) with ESMTP id 7527013C455 for ; Wed, 2 May 2007 10:39:50 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from (mail1.jp.viruscheck.net) [154.33.69.37]:25873 by smtp5.jp.viruscheck.net with esmtp id 1HjBGb-0003mq-J1 ; Wed, 02 May 2007 18:36:57 +0900 Received: from (noc.orchid.orchidtechnology.com) [125.206.34.113]:13656 by mail1.jp.viruscheck.net with esmtp id 1HjBGb-0006EJ-6E ; Wed, 02 May 2007 18:36:57 +0900 Received: from [89.60.200.25] ([89.60.200.25]) by noc.orchid.orchidtechnology.com (8.13.4/8.13.4) with ESMTP id l429audC019643; Wed, 2 May 2007 18:36:56 +0900 (JST) (envelope-from bland@FreeBSD.org) Message-ID: <46385BB2.8040302@FreeBSD.org> Date: Wed, 02 May 2007 18:36:50 +0900 From: Alexander Nedotsukov User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Thomas Zander References: <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com> In-Reply-To: <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: Undefine WITH_DEBUG? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 May 2007 10:39:50 -0000 Thomas Zander wrote: > Hi, > > I am trying to track down a problem with building mplayer with debug > symbols. The problem is that this seems possible (at least on my > machine) only if it is compiled with > > -O{1|2|3} -fomit-frame-pointer > > due to one of its incredibly smart inline-asm sections. > Now, when using WITH_DEBUG in a port, "-O" expressions are stripped > from the CFLAGS by the port build environment. > The actual issue is that users who define WITH_DEBUG globally for > their ports will probably run into this. > > Is there an elegant solution to circumvent this and undefine WITH_DEBUG? I think you need to add DEBUG_FLAGS="-g -O2 -fomit-frame-pointer". > > Riggs > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"