From 8cfe74e01adf895134373a10b3fa5bf84fd5cb6d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 Aug 2022 22:54:32 -0700 Subject: 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-extended/unzip/unzip_6.0.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-extended/unzip') 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(?!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. -- cgit v1.2.3-54-g00ecf