From dea85812d110bf4cadcdae3cc502e84c73f74bd4 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Mon, 10 Feb 2025 23:20:17 +1100 Subject: [PATCH] fix(zlib): set soname Signed-off-by: Anhad Singh --- recipes/libs/zlib/recipe.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/recipes/libs/zlib/recipe.toml b/recipes/libs/zlib/recipe.toml index 0ff21eb5e..303801789 100644 --- a/recipes/libs/zlib/recipe.toml +++ b/recipes/libs/zlib/recipe.toml @@ -1,14 +1,16 @@ [source] tar = "https://www.zlib.net/fossils/zlib-1.3.tar.gz" blake3 = "ec1abc6f672a7a6ee6f49ba544cc9529f73121b478310473be44fee22a140ebf" + [build] template = "custom" script = """ - DYNAMIC_INIT - # See https://stackoverflow.com/questions/21396988/zlib-build-not-configuring-properly-with-cross-compiler-ignores-ar. - CHOST="${TARGET}" "${COOKBOOK_CONFIGURE}" --prefix="" - "${COOKBOOK_MAKE}" -j "$(nproc)" - "${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" +DYNAMIC_INIT +# See https://stackoverflow.com/questions/21396988/zlib-build-not-configuring-properly-with-cross-compiler-ignores-ar. +CHOST="${TARGET}" "${COOKBOOK_CONFIGURE}" --prefix="" +"${COOKBOOK_MAKE}" -j "$(nproc)" +"${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" +patchelf --set-soname 'libz.so.1.3' "${COOKBOOK_STAGE}/lib/libz.so.1.3" """ [package]