From: Chris Zankel Date: Tue, 22 Jan 2013 10:33:19 +0000 (+0000) Subject: xtensa: sqlite requires special compiler option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a30cd3fb30b8057ddde2c72a88c0bb6ad7d1761;p=buildroot.git xtensa: sqlite requires special compiler option Some of the generated object files are too large for PC-relative addressing, so use the -mtext-section-literals compiler flag to move symbols closer to the code. [Peter: fix commit message] Signed-off-by: Chris Zankel Signed-off-by: Peter Korsgaard --- diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk index bf4b921244..8eb6b2f76c 100644 --- a/package/sqlite/sqlite.mk +++ b/package/sqlite/sqlite.mk @@ -33,6 +33,10 @@ ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y) SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE endif +ifeq ($(BR2_xtensa),y) +SQLITE_CFLAGS += -mtext-section-literals +endif + SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)" SQLITE_CONF_OPT = \