diff --git a/recipes/zlib/recipe.toml b/recipes/zlib/recipe.toml new file mode 100644 index 0000000000000000000000000000000000000000..178a62eda9a291127852bfcfd276d0152dd71e7d --- /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}" +"""