mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user