mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
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 <chris@zankel.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
bf885f10b7
commit
6a30cd3fb3
@@ -33,6 +33,10 @@ ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y)
|
|||||||
SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
|
SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_xtensa),y)
|
||||||
|
SQLITE_CFLAGS += -mtext-section-literals
|
||||||
|
endif
|
||||||
|
|
||||||
SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
|
SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
|
||||||
|
|
||||||
SQLITE_CONF_OPT = \
|
SQLITE_CONF_OPT = \
|
||||||
|
|||||||
Reference in New Issue
Block a user