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:
Simon Howard 2016-02-18 00:37:46 -05:00
parent fd7fec926b
commit fda69b6ee1
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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."
)
}