mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Add zlib recipe.toml
This commit is contained in:
parent
204e968016
commit
ae4b56fca6
14
recipes/zlib/recipe.toml
Normal file
14
recipes/zlib/recipe.toml
Normal file
@ -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}"
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user