sqlite: avoid use of unsupported -Ofast CFLAGS
authorJoshua Henderson <joshua.henderson@microchip.com>
Fri, 13 Apr 2018 20:22:34 +0000 (13:22 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 15 Apr 2018 20:13:37 +0000 (22:13 +0200)
commit83781f11dce6d4ef8da052253454cafcbec80dbe
tree1082392f7b34d7416207922a868c24cc59cc1c9f
parent56f39e81ac0e00a0004cdbebe0ca0e2501bbdfd9
sqlite: avoid use of unsupported -Ofast CFLAGS

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@microchip.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/sqlite/sqlite.mk