diff options
| author | Andre McCurdy <armccurdy@gmail.com> | 2019-08-23 13:51:44 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-28 11:31:22 +0100 |
| commit | 082e31ce2fe422a5b9112c314ddf717ad94ea781 (patch) | |
| tree | 463cc3ef1dec2cd82daa801aff8c1674320f2782 /meta | |
| parent | 429f2e933e5e8f1c6a9a2190f222012fc72c3d70 (diff) | |
| download | poky-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')
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3.inc | 6 |
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 | ||
| 20 | CVE_PRODUCT = "sqlite" | 20 | CVE_PRODUCT = "sqlite" |
| 21 | 21 | ||
| 22 | inherit autotools pkgconfig | 22 | inherit 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 |
| 25 | PACKAGECONFIG ?= "fts4 fts5 json1 rtree dyn_ext" | 25 | PACKAGECONFIG ?= "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 |
| 53 | CFLAGS_append = " -DSQLITE_ENABLE_COLUMN_METADATA" | 53 | CFLAGS_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 | ||
| 57 | CFLAGS_append = " ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-DSQLITE_BYTEORDER=1234', '-DSQLITE_BYTEORDER=4321', d)}" | ||
| 58 | |||
| 55 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" | 59 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" |
| 56 | 60 | ||
| 57 | FILES_${PN} = "${bindir}/*" | 61 | FILES_${PN} = "${bindir}/*" |
