mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
17 lines
472 B
TOML
17 lines
472 B
TOML
[source]
|
|
tar = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
|
|
patches = [
|
|
"01_redox.patch"
|
|
]
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_STATIC_INIT
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
|
# TODO: fPIC is the default on linux but not on redox and
|
|
# required by llvm21 as zstd statically linked there
|
|
export CPPFLAGS="$CPPFLAGS -fPIC"
|
|
${COOKBOOK_MAKE}
|
|
${COOKBOOK_MAKE} install DESTDIR="${COOKBOOK_STAGE}" prefix="/usr"
|
|
"""
|