Date: Wed, 02 May 2007 18:36:50 +0900 From: Alexander Nedotsukov <bland@FreeBSD.org> To: Thomas Zander <thomas.e.zander@googlemail.com> Cc: ports@FreeBSD.org Subject: Re: Undefine WITH_DEBUG? Message-ID: <46385BB2.8040302@FreeBSD.org> In-Reply-To: <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com> References: <786602c60705020154k74b23dbkae585bf01a867f92@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46385BB2.8040302>