mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-10 07:11:39 +00:00
Add variable for passing options to make.
Include a commented-out example of how to use -j to do multicore builds.
This commit is contained in:
parent
fd7fec926b
commit
fda69b6ee1
2 changed files with 7 additions and 1 deletions
|
@ -14,6 +14,12 @@ else
|
|||
IS_CROSS_COMPILE=false
|
||||
fi
|
||||
|
||||
# Extra arguments we pass to make when building.
|
||||
MAKE_OPTS=
|
||||
|
||||
# Uncomment to use more threads for faster builds.
|
||||
#MAKE_OPTS=-j4
|
||||
|
||||
# On OS X, we must set additional options: build 32-bit binaries, and the
|
||||
# target API version.
|
||||
if [ $(uname) = "Darwin" ]; then
|
||||
|
|
|
@ -176,7 +176,7 @@ do_build() {
|
|||
error_exit "Failed to configure package $PACKAGE_NAME for build."
|
||||
)
|
||||
|
||||
make || (
|
||||
make $MAKE_OPTS || (
|
||||
error_exit "Failed to build package $PACKAGE_NAME."
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue