Skip to content

Commit

Permalink
Merge pull request #9 from rakutentech/faster-ruby-compilation
Browse files Browse the repository at this point in the history
Consistently use parallel make in ruby packaging
  • Loading branch information
selzoc authored Jul 12, 2017
2 parents 6e7cacf + 0a81d21 commit 2df50b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ruby-2.2.5/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tar xzf ruby-2.2.5/yaml-${LIBYAML_VERSION}.tar.gz
cp ${BOSH_COMPILE_TARGET}/architecture-support/config/config.{guess,sub} ./config
fi
./configure --prefix=${BOSH_INSTALL_TARGET}
make -j 3 # Use 3 CPUs, which is 1.5 x 2 (the normal number of compile CPUs)
make -j $(getconf _NPROCESSORS_ONLN) || make
make install
ldconfig
)
Expand All @@ -25,7 +25,7 @@ tar xzf ruby-2.2.5/ruby-${RUBY_VERSION}.tar.gz
set -e
cd ruby-${RUBY_VERSION}
LDFLAGS="-Wl,-rpath -Wl,${BOSH_INSTALL_TARGET}" ./configure --prefix=${BOSH_INSTALL_TARGET} --disable-install-doc --with-opt-dir=${BOSH_INSTALL_TARGET}
make
make -j $(getconf _NPROCESSORS_ONLN) || make
make install
)

Expand Down

0 comments on commit 2df50b9

Please sign in to comment.