1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

Ports/bzip2: Set AR and RANLIB

bzip2's Makefile uses the '=' operator to set these variables so they
cannot be overridden by just the environment variables; we have to pass
them on the command line.

This change ensures that the system ar/ranlib are no longer used, so the
port can be build on macOS or non-x86 Linux.
This commit is contained in:
Daniel Bertalan 2022-07-14 08:31:09 +02:00 committed by Andreas Kling
parent 407231f11c
commit 34ae69b99d

View file

@ -7,9 +7,9 @@ makeopts=("bzip2")
installopts=("PREFIX=${SERENITY_INSTALL_ROOT}/usr/local") installopts=("PREFIX=${SERENITY_INSTALL_ROOT}/usr/local")
build() { build() {
run make CC="${CC}" "${makeopts[@]}" bzip2 run make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" "${makeopts[@]}" bzip2
} }
install() { install() {
run make DESTDIR=${SERENITY_INSTALL_ROOT} CC="${CC}" "${installopts[@]}" install run make DESTDIR=${SERENITY_INSTALL_ROOT} CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" "${installopts[@]}" install
} }