mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-29 16:18:44 +08:00
16 lines
512 B
TOML
16 lines
512 B
TOML
#TODO compiled but not tested
|
|
[source]
|
|
git = "https://github.com/zlib-ng/zlib-ng"
|
|
rev = "2bc66887ddc0c50776811a27be68e34430d665e1"
|
|
[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}"
|
|
"""
|