mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add a knob WITH_BUNDLED_ENGINES to test.sh.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a6adb8924
commit
35e4d1319b
1 changed files with 8 additions and 2 deletions
|
@ -14,14 +14,20 @@ ${MAKE}
|
|||
mkdir -p lib/digest
|
||||
|
||||
for algo in md5 rmd160 sha1 sha2; do
|
||||
args=--with-cflags="${CFLAGS}"
|
||||
|
||||
if [ $WITH_BUNDLED_ENGINES ]; then
|
||||
args="$args --with-bundled-$algo"
|
||||
fi
|
||||
|
||||
(cd $algo &&
|
||||
${RUBY} extconf.rb --with-cflags="${CFLAGS}";
|
||||
${RUBY} extconf.rb $args;
|
||||
${MAKE} clean;
|
||||
${MAKE})
|
||||
ln -sf ../../$algo/$algo.so lib/digest/
|
||||
done
|
||||
|
||||
${RUBY} -I. -I./lib test.rb
|
||||
${RUBY} -I. -I./lib test.rb
|
||||
|
||||
rm lib/digest/*.so
|
||||
rmdir lib/digest
|
||||
|
|
Loading…
Add table
Reference in a new issue