From ae4b56fca674e84d68c205525700fb131d16776e Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Wed, 20 May 2020 16:07:55 -0600 Subject: [PATCH] Add zlib recipe.toml --- recipes/zlib/recipe.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 recipes/zlib/recipe.toml diff --git a/recipes/zlib/recipe.toml b/recipes/zlib/recipe.toml new file mode 100644 index 000000000..178a62eda --- /dev/null +++ b/recipes/zlib/recipe.toml @@ -0,0 +1,14 @@ +[source] +tar = "http://zlib.net/zlib-1.2.11.tar.gz" + +[build] +template = "custom" +script = """ + export LDFLAGS="--static" + # See https://stackoverflow.com/questions/21396988/zlib-build-not-configuring-properly-with-cross-compiler-ignores-ar. + CHOST="${TARGET}" "${COOKBOOK_SOURCE}/configure" \ + --prefix="" \ + --static + make -j "$(nproc)" + make install DESTDIR="${COOKBOOK_STAGE}" +""" -- GitLab