Skip to content

Commit

Permalink
xtensa: sqlite requires special compiler option
Browse files Browse the repository at this point in the history
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 <chris@zankel.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  • Loading branch information
czankel authored and jacmet committed Jan 29, 2013
1 parent bf885f1 commit 6a30cd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/sqlite/sqlite.mk
Expand Up @@ -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 = \
Expand Down

0 comments on commit 6a30cd3

Please sign in to comment.