[Buildroot] [PATCH 1] xtensa: sqlite requires special compiler option

Chris Zankel chris at zankel.net
Tue Jan 22 20:33:19 UTC 2013


Some of the generated object files are too large for PC-relative addressing,
so use the --test-section-literals to move symbols closer to the code.

Signed-off-by: Chris Zankel <chris at zankel.net>
---
 package/sqlite/sqlite.mk |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/sqlite/sqlite.mk b/package/sqlite/sqlite.mk
index bf4b921..8eb6b2f 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 = \
-- 
1.7.10.4



More information about the buildroot mailing list