diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2013-01-08 11:46:26 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-01-10 16:06:42 -0800 |
commit | 6a0e5bc08776e0ca0b78acc802e9a483de7fc649 (patch) | |
tree | c4295799ebf16971f6fce7d4b37d08893942d40f /unit/test-gobex-header.c | |
parent | e654bdfa9ad743ee99a0ccfff6be516b4b1cab03 (diff) | |
download | bluez-6a0e5bc08776e0ca0b78acc802e9a483de7fc649.tar.gz |
build: Fix --disable-optimization configure option
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.
Diffstat (limited to 'unit/test-gobex-header.c')
0 files changed, 0 insertions, 0 deletions