From: Marcel Holtmann <marcel@holtmann.org>
To: Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ 1/2] build: Fix --disable-optimization configure option
Date: Thu, 10 Jan 2013 16:31:24 -0800 [thread overview]
Message-ID: <1357864284.1806.80.camel@aeonflux> (raw)
In-Reply-To: <1357659987-4219-1-git-send-email-anderson.lizardo@openbossa.org>
Hi Anderson,
> On commit cc9e4e7cae0379864ea06038d92bf7ecc192bba7, this flag was
> mistakenly replaced with the behavior of the old --enable-fortify
> option.
>
> This patch restores the "-O0" flag when --disable-optimization is used.
>
> Unfortunately, this is not enough to disable build optimization. By
> default, autoconf adds -O2 to CFLAGS if the compiler is GCC. AM_CFLAGS
> (where -O0 is added with --disable-optimization) is passed as argument
> to GCC before autoconf CFLAGS, so it is not possible to override the
> default -O2. One solution is to use:
>
> CFLAGS= ./configure --disable-optimization
>
> i.e. remove -O2 from CFLAGS, and let autoconf add -O0.
> ---
> acinclude.m4 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
patch has been applied.
Regards
Marcel
prev parent reply other threads:[~2013-01-11 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-08 15:46 [PATCH BlueZ 1/2] build: Fix --disable-optimization configure option Anderson Lizardo
2013-01-08 15:46 ` [PATCH BlueZ 2/2] attrib: Fix compilation errors when compiled without optimization Anderson Lizardo
2013-01-11 0:06 ` Marcel Holtmann
2013-01-11 0:31 ` Marcel Holtmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1357864284.1806.80.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox