diff options
| author | Phil Blundell <philb@gnu.org> | 2012-09-22 17:50:21 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-24 11:30:35 +0100 |
| commit | 4d741c106cd6c657a353a2cf89af58a2d3b611b6 (patch) | |
| tree | f9ccd2719fe4d287277226b600b8f1be63b25366 | |
| parent | 9ee8e2fae8b1d0b4d80378ee67e6366033863f6f (diff) | |
| download | poky-4d741c106cd6c657a353a2cf89af58a2d3b611b6.tar.gz | |
sqlite3: enable USE_PREAD
This gives a small but measureable performance improvement for
I/O heavy workloads.
(From OE-Core rev: e4bd65e68c3d0dd798ff69c2e9491e5b2dcafdc3)
Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3.inc | 4 | ||||
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3_3.7.13.bb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-support/sqlite/sqlite3.inc b/meta/recipes-support/sqlite/sqlite3.inc index 0cc5d65b72..70841f88cb 100644 --- a/meta/recipes-support/sqlite/sqlite3.inc +++ b/meta/recipes-support/sqlite/sqlite3.inc | |||
| @@ -17,6 +17,10 @@ export config_TARGET_LINK = "${CCLD}" | |||
| 17 | export config_TARGET_CFLAGS = "${CFLAGS}" | 17 | export config_TARGET_CFLAGS = "${CFLAGS}" |
| 18 | export config_TARGET_LFLAGS = "${LDFLAGS}" | 18 | export config_TARGET_LFLAGS = "${LDFLAGS}" |
| 19 | 19 | ||
| 20 | # pread() is in POSIX.1-2001 so any reasonable system must surely support it | ||
| 21 | BUILD_CFLAGS += "-DUSE_PREAD" | ||
| 22 | TARGET_CFLAGS += "-DUSE_PREAD" | ||
| 23 | |||
| 20 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" | 24 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" |
| 21 | 25 | ||
| 22 | FILES_${PN} = "${bindir}/*" | 26 | FILES_${PN} = "${bindir}/*" |
diff --git a/meta/recipes-support/sqlite/sqlite3_3.7.13.bb b/meta/recipes-support/sqlite/sqlite3_3.7.13.bb index 4e050a3e26..48b50ac475 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.7.13.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.7.13.bb | |||
| @@ -2,7 +2,7 @@ require sqlite3.inc | |||
| 2 | 2 | ||
| 3 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0" | 3 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=65f0a57ca6928710b418c094b3570bb0" |
| 4 | 4 | ||
| 5 | PR = "r0" | 5 | PR = "r1" |
| 6 | 6 | ||
| 7 | SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3071300.tar.gz" | 7 | SRC_URI = "http://www.sqlite.org/sqlite-autoconf-3071300.tar.gz" |
| 8 | S = "${WORKDIR}/sqlite-autoconf-3071300" | 8 | S = "${WORKDIR}/sqlite-autoconf-3071300" |
