Comment 2 for bug 349177

Revision history for this message
Mark Callaghan (mdcallag) wrote : Re: [Bug 349177] Re: Code to generate compiler options doesn't handle -g2

On Tue, Apr 7, 2009 at 7:03 AM, Vladimir Kolesnikov
<email address hidden> wrote:
> Hi Mark,
>
> I cannot reproduce the problem. Which configuration options are you
> using for MySQL and PBXT?

There are more, but the relevant ones are:
./configure ... CFLAGS="-O2 -g2" CXXFLAGS="-O2 -g2"

>
> Thanks.
>
> ** Changed in: pbxt
> Status: New => Incomplete
>
> ** Changed in: pbxt
> Assignee: (unassigned) => Vladimir Kolesnikov (vkolesnikov)
>
> --
> Code to generate compiler options doesn't handle -g2
> https://bugs.launchpad.net/bugs/349177
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in PrimeBase XT: Incomplete
>
> Bug description:
> Using the latest code from lp:pbxt, this does the wrong thing for '-g2'. The result from that is the option '2' which makes compilation fail.
>
> strip_mysql_opt_dbg_flags()
> {
> MYSQL_CFLAGS=`echo "$MYSQL_CFLAGS" | sed "s/-Os//" | sed "s/-O3//" | sed "s/-O2//" | sed "s/-O//" | sed "s/-g//"`
> MYSQL_CXXFLAGS=`echo "$MYSQL_CXXFLAGS" | sed "s/-Os//" | sed "s/-O3//" | sed "s/-O2//" | sed "s/-O//" | sed "s/-g//"`
> }
>

--
Mark Callaghan
<email address hidden>