From e2bc5106234e3ac0f7f43bd933d7741bd2df8fc8 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 10 Aug 2022 22:54:29 -0700 Subject: zip: Enable largefile support based on distro feature The configure test tries to run a binary during build to determine largefile support, which wont work in cross-compile mode, therefore specify it when largefile DISTRO_FEATURE is on. (From OE-Core rev: 0becc36f930969a237af7d7486fc94249b0395eb) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/recipes-extended/zip/zip_3.0.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-extended/zip/zip_3.0.bb') diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb index 07a67b9634..d560c83464 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb @@ -29,6 +29,8 @@ CVE_CHECK_IGNORE += "CVE-2018-13410" # Not for zip but for smart contract implementation for it CVE_CHECK_IGNORE += "CVE-2018-13684" +CFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-DLARGE_FILE_SUPPORT', '', d)}" + # zip.inc sets CFLAGS, but what Makefile actually uses is # CFLAGS_NOOPT. It will also force -O3 optimization, overriding # whatever we set. -- cgit v1.2.3-54-g00ecf