]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
unzip: Enable largefile support when enabled in distro
authorKhem Raj <raj.khem@gmail.com>
Thu, 11 Aug 2022 05:54:32 +0000 (22:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Aug 2022 18:22:01 +0000 (19:22 +0100)
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 <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-extended/unzip/unzip_6.0.bb

index 15235540890c7338c9917446fa3aed68fedf4381..96068eefdd2dca6cc75ba41b9f92f4268fa88ab8 100644 (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.