diff options
author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2021-04-22 17:41:52 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-24 17:53:04 +0100 |
commit | d2c176d1ca053833c84bea3041ef0f966d7c7b0d (patch) | |
tree | bed62210029f4cf00ae322239c4da7bde4716dce /meta/recipes-support | |
parent | de0c3226ab3bf96c3957f6cee877bf08dc687806 (diff) | |
download | poky-d2c176d1ca053833c84bea3041ef0f966d7c7b0d.tar.gz |
lz4: use CFLAGS from bitbake
Currently lz4 uses it's own defaults which include O3 optimization.
Switch from O3 to bitbake default O2 reduces binary package size
from 467056 to 331888 bytes. Enables also building with Os if needed.
(From OE-Core rev: abaaf8c6bcd368728d298937a9406eb2aebc7a7d)
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/lz4/lz4_1.9.3.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-support/lz4/lz4_1.9.3.bb b/meta/recipes-support/lz4/lz4_1.9.3.bb index effc530b94..3905ef7dbc 100644 --- a/meta/recipes-support/lz4/lz4_1.9.3.bb +++ b/meta/recipes-support/lz4/lz4_1.9.3.bb | |||
@@ -22,7 +22,7 @@ S = "${WORKDIR}/git" | |||
22 | # Fixed in r118, which is larger than the current version. | 22 | # Fixed in r118, which is larger than the current version. |
23 | CVE_CHECK_WHITELIST += "CVE-2014-4715" | 23 | CVE_CHECK_WHITELIST += "CVE-2014-4715" |
24 | 24 | ||
25 | EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" | 25 | EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' CFLAGS='${CFLAGS}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" |
26 | 26 | ||
27 | do_install() { | 27 | do_install() { |
28 | oe_runmake install | 28 | oe_runmake install |