2022-01-11 03:46:43 -05:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2024-10-26 22:04:34 -04:00
|
|
|
port='mold'
|
|
|
|
version='2.34.1'
|
2023-07-10 07:10:29 -04:00
|
|
|
files=(
|
2024-10-26 22:04:34 -04:00
|
|
|
"https://github.com/rui314/mold/archive/refs/tags/v${version}.tar.gz#a8cf638045b4a4b2697d0bcc77fd96eae93d54d57ad3021bf03b0333a727a59d"
|
2023-07-10 07:10:29 -04:00
|
|
|
)
|
2022-10-02 23:01:33 -04:00
|
|
|
depends=("zlib" "openssl" "zstd")
|
|
|
|
useconfigure='true'
|
|
|
|
configopts=(
|
|
|
|
"-B build"
|
|
|
|
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
|
|
|
|
"-DMOLD_USE_MIMALLOC=OFF"
|
|
|
|
"-DBUILD_TESTING=OFF"
|
|
|
|
)
|
|
|
|
|
|
|
|
configure() {
|
|
|
|
run cmake "${configopts[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
run make -C build "${makeopts[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
run make -C build install "${installopts[@]}"
|
|
|
|
}
|