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
Notes: sideshowbarker 2024-07-17 08:26:42 +09:00

View file

@ -7,9 +7,9 @@ makeopts=("bzip2")
installopts=("PREFIX=${SERENITY_INSTALL_ROOT}/usr/local")
build() {
run make CC="${CC}" "${makeopts[@]}" bzip2
run make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}" "${makeopts[@]}" bzip2
}
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
}