mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 14:54:20 +08:00
28 lines
737 B
TOML
28 lines
737 B
TOML
#TODO not compiled or tested
|
|
#TODO maybe incomplete script
|
|
# build instructions - https://github.com/rui314/mold#how-to-build
|
|
[source]
|
|
git = "https://github.com/rui314/mold"
|
|
rev = "cf1c02d097fc57113b7f9fabf1bc15f810b8b27c"
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"library1",
|
|
]
|
|
script = """
|
|
COOKBOOK_CONFIGURE="cmake"
|
|
COOKBOOK_CONFIGURE_FLAGS=(
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_CROSSCOMPILING=True
|
|
-DCMAKE_EXE_LINKER_FLAGS="-static"
|
|
-DCMAKE_INSTALL_PREFIX="/"
|
|
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
|
|
-DCMAKE_SYSTEM_NAME=Generic
|
|
-DCMAKE_SYSTEM_PROCESSOR="$(echo "${TARGET}" | cut -d - -f1)"
|
|
-DCMAKE_VERBOSE_MAKEFILE=On
|
|
-DCMAKE_CXX_COMPILER=c++
|
|
"${COOKBOOK_SOURCE}"
|
|
)
|
|
cookbook_configure
|
|
"""
|