diff options
author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2021-04-22 17:41:52 +0300 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-11-13 05:34:11 -1000 |
commit | af571c0841265dfa4bd87546080e499336a37fcc (patch) | |
tree | 32025ad8e5dba5b4c6ccfaebde5129f69c78285a | |
parent | d4b96dc1e457b4e68c5bad685ffcfd2f250162e7 (diff) | |
download | openembedded-core-contrib-af571c0841265dfa4bd87546080e499336a37fcc.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.
Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit abaaf8c6bcd368728d298937a9406eb2aebc7a7d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-support/lz4/lz4_1.9.2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-support/lz4/lz4_1.9.2.bb b/meta/recipes-support/lz4/lz4_1.9.2.bb index 0c4a0ac807..c2e24b518c 100644 --- a/meta/recipes-support/lz4/lz4_1.9.2.bb +++ b/meta/recipes-support/lz4/lz4_1.9.2.bb @@ -23,7 +23,7 @@ S = "${WORKDIR}/git" # Fixed in r118, which is larger than the current version. CVE_CHECK_WHITELIST += "CVE-2014-4715" -EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" +EXTRA_OEMAKE = "PREFIX=${prefix} CC='${CC}' CFLAGS='${CFLAGS}' DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir} BUILD_STATIC=no" do_install() { oe_runmake install |