[source] #git = "https://github.com/madler/zlib" #rev = "04f42ceca40f73e2978b50e93806c2a18c1281fc" tar = "https://zlib.net/zlib-1.2.13.tar.xz" blake3 = "cc042bf8507e02f5799cf6fdb49278402a7b748defe3ade425e35e14a7c00186" [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_CONFIGURE}" \ --prefix="" \ --static "${COOKBOOK_MAKE}" -j "$(nproc)" "${COOKBOOK_MAKE}" install DESTDIR="${COOKBOOK_STAGE}" """