mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-29 16:18:44 +08:00
16 lines
510 B
TOML
16 lines
510 B
TOML
[source]
|
|
tar = "http://zlib.net/zlib-1.2.11.tar.gz"
|
|
blake3 = "20db628054c3c09edea193700ca39d3c033655529cbdc5d88f3c5da7514ad949"
|
|
|
|
[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}"
|
|
"""
|