diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-08-10 22:54:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-12 19:22:01 +0100 |
commit | 740a0bcdf63606aebc07861fd563c80c11caaaef (patch) | |
tree | cad1da08c29f40584a88ec952666466167915d08 | |
parent | f898db2607ba3837f81292af92bc8cb605b96cb3 (diff) | |
download | openembedded-core-740a0bcdf63606aebc07861fd563c80c11caaaef.tar.gz |
unzip: Enable largefile support when enabled in distro
The test to determine largefile support is a runtime test which wont
work during cross-compile, therefore override the test result from
recipe
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | meta/recipes-extended/unzip/unzip_6.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index 1523554089..96068eefdd 100644 --- a/meta/recipes-extended/unzip/unzip_6.0.bb +++ b/meta/recipes-extended/unzip/unzip_6.0.bb @@ -46,6 +46,8 @@ UPSTREAM_CHECK_REGEX = "unzip(?P<pver>(?!552).+)\.tgz" S = "${WORKDIR}/unzip60" +CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DLARGE_FILE_SUPPORT', '', d)}" + # Makefile uses CF_NOOPT instead of CFLAGS. We lifted the values from # Makefile and add CFLAGS. Optimization will be overriden by unzip # configure to be -O3. |