From 740a0bcdf63606aebc07861fd563c80c11caaaef Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 Aug 2022 22:54:32 -0700 Subject: [PATCH] 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 Signed-off-by: Alexandre Belloni --- meta/recipes-extended/unzip/unzip_6.0.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index 15235540890..96068eefdd2 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. -- 2.47.3