summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/sqlite
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2019-08-23 13:51:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-28 11:31:22 +0100
commit082e31ce2fe422a5b9112c314ddf717ad94ea781 (patch)
tree463cc3ef1dec2cd82daa801aff8c1674320f2782 /meta/recipes-support/sqlite
parent429f2e933e5e8f1c6a9a2190f222012fc72c3d70 (diff)
downloadpoky-082e31ce2fe422a5b9112c314ddf717ad94ea781.tar.gz
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>
Diffstat (limited to 'meta/recipes-support/sqlite')
-rw-r--r--meta/recipes-support/sqlite/sqlite3.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc
index 044af5ee97..4af1e09e80 100644
--- a/meta/recipes-support/sqlite/sqlite3.inc
+++ b/meta/recipes-support/sqlite/sqlite3.inc
@@ -19,7 +19,7 @@ UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
19 19
20CVE_PRODUCT = "sqlite" 20CVE_PRODUCT = "sqlite"
21 21
22inherit autotools pkgconfig 22inherit autotools pkgconfig siteinfo
23 23
24# enable those which are enabled by default in configure 24# enable those which are enabled by default in configure
25PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext" 25PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext"
@@ -52,6 +52,10 @@ CFLAGS_append = " -DUSE_PREAD"
52# Provide column meta-data API 52# Provide column meta-data API
53CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA" 53CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA"
54 54
55# Unless SQLITE_BYTEORDER is predefined, the code falls back to build time
56# huristics, which are not always correct
57CFLAGS_append = " ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DSQLITE_BYTEORDER=1234', '-DSQLITE_BYTEORDER=4321', d)}"
58
55PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" 59PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
56 60
57FILES_${PN} = "${bindir}/*" 61FILES_${PN} = "${bindir}/*"