From: Khem Raj Date: Thu, 11 Aug 2022 05:54:32 +0000 (-0700) Subject: unzip: Enable largefile support when enabled in distro X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=740a0bcdf63606aebc07861fd563c80c11caaaef;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- 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.