diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-10 22:54:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 19:22:04 +0100 |
commit | e2bc5106234e3ac0f7f43bd933d7741bd2df8fc8 (patch) | |
tree | 7079e0b204bf875b943e620eda0e063a498ff79b /meta | |
parent | 16b42a139ccdfaa061646c7acc13aa2e071db909 (diff) | |
download | poky-e2bc5106234e3ac0f7f43bd933d7741bd2df8fc8.tar.gz |
zip: Enable largefile support based on distro feature
The configure test tries to run a binary during build to determine
largefile support, which wont work in cross-compile mode, therefore
specify it when largefile DISTRO_FEATURE is on.
(From OE-Core rev: 0becc36f930969a237af7d7486fc94249b0395eb)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/zip/zip_3.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb index 07a67b9634..d560c83464 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb | |||
@@ -29,6 +29,8 @@ CVE_CHECK_IGNORE += "CVE-2018-13410" | |||
29 | # Not for zip but for smart contract implementation for it | 29 | # Not for zip but for smart contract implementation for it |
30 | CVE_CHECK_IGNORE += "CVE-2018-13684" | 30 | CVE_CHECK_IGNORE += "CVE-2018-13684" |
31 | 31 | ||
32 | CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DLARGE_FILE_SUPPORT', '', d)}" | ||
33 | |||
32 | # zip.inc sets CFLAGS, but what Makefile actually uses is | 34 | # zip.inc sets CFLAGS, but what Makefile actually uses is |
33 | # CFLAGS_NOOPT. It will also force -O3 optimization, overriding | 35 | # CFLAGS_NOOPT. It will also force -O3 optimization, overriding |
34 | # whatever we set. | 36 | # whatever we set. |