[Buildroot] [PATCH] sqlite: avoid use of unsupported -Ofast CFLAGS

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Apr 15 20:14:03 UTC 2018


Hello,

On Fri, 13 Apr 2018 13:22:34 -0700, Joshua Henderson wrote:
> sqlite3 refuses to be built with -ffast-math (a side effect of -Ofast) when it
> falls back to implementing its own isnan() function.
> 
> sqlite3.c: In function ‘sqlite3IsNaN’:
> sqlite3.c:28554:3: error: #error SQLite will not work correctly with the -ffast-math option of GCC.
> 
> To work around this, when -Ofast is used replace with -O3.
> 
> Signed-off-by: Joshua Henderson <joshua.henderson at microchip.com>
> ---
>  package/sqlite/sqlite.mk | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list