mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
sqlite3: explicitly set target endian-ness
Unless SQLITE_BYTEORDER is predefined, the code falls back to build time huristics - which are not always correct (e.g. in sqlite 3.28.0 big-endian ARM is mis-detected). (From OE-Core rev: c0fc43c228acd44499d9a1c257ec5e4cf42ed050) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
429f2e933e
commit
082e31ce2f
@@ -19,7 +19,7 @@ UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
|
|||||||
|
|
||||||
CVE_PRODUCT = "sqlite"
|
CVE_PRODUCT = "sqlite"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig siteinfo
|
||||||
|
|
||||||
# enable those which are enabled by default in configure
|
# enable those which are enabled by default in configure
|
||||||
PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
|
PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
|
||||||
@@ -52,6 +52,10 @@ CFLAGS_append = " -DUSE_PREAD"
|
|||||||
# Provide column meta-data API
|
# Provide column meta-data API
|
||||||
CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA"
|
CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA"
|
||||||
|
|
||||||
|
# Unless SQLITE_BYTEORDER is predefined, the code falls back to build time
|
||||||
|
# huristics, which are not always correct
|
||||||
|
CFLAGS_append = " ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DSQLITE_BYTEORDER=1234', '-DSQLITE_BYTEORDER=4321', d)}"
|
||||||
|
|
||||||
PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
|
PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
|
||||||
|
|
||||||
FILES_${PN} = "${bindir}/*"
|
FILES_${PN} = "${bindir}/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user