Permalink
Browse files

Look for MAKE_OPTS to override options sent to make to address build …

…failures on some systems
  • Loading branch information...
1 parent 495b248 commit b248025bbe57ef0a4aef488b38d16071ec07d5b9 @theaboutbox theaboutbox committed Sep 26, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/ruby-build
View
@@ -127,9 +127,11 @@ build_package() {
build_package_standard() {
local package_name="$1"
-
+ if [ -z "${MAKE_OPTS+defined}" ]; then
+ MAKE_OPTS="-j 2"
+ fi
{ ./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
- make -j 2
+ make $MAKE_OPTS
make install
} >&4 2>&1
}

0 comments on commit b248025

Please sign in to comment.