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

(From OE-Core rev: 740a0bcdf63606aebc07861fd563c80c11caaaef)

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>
This commit is contained in:
Khem Raj
2022-08-10 22:54:32 -07:00
committed by Richard Purdie
parent f40f214e71
commit 8cfe74e01a

View File

@@ -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.