From 9c6d3c68d030d59b763b7a66e5139b1df5c7e397 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Mon, 19 Jun 2023 12:35:53 +0800 Subject: zip: fix configure check by using _Static_assert It's incorrect to run a cross-compiled program on build machine to check if some feature is available or not. As these two checks in zip are basically just checking the size, we can use _Static_assert and sizeof to do such check at compile time. (From OE-Core rev: dda778d855b1838ae3004a9af310724b913490b4) Signed-off-by: Chen Qi Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- meta/recipes-extended/zip/zip_3.0.bb | 1 + 1 file changed, 1 insertion(+) (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 1930a40140..802877285f 100644 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ b/meta/recipes-extended/zip/zip_3.0.bb @@ -19,6 +19,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar. file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \ file://0001-configure-Specify-correct-function-signatures-and-de.patch \ file://0002-unix.c-Do-not-redefine-DIR-as-FILE.patch \ + file://0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch \ " UPSTREAM_VERSION_UNKNOWN = "1" -- cgit v1.2.3-54-g00ecf