Skip to content

Commit d394d65

Browse files
committed
Change CONFIGURE_OPTS
- Use CONFIGURE_OPTS as array - Check for both ruby-2.4 and ruby-2.5
1 parent 8daf3e6 commit d394d65

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

build.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,16 @@ ruby-*)
201201
EXTRA_FLAGS="--rubygems ignore"
202202
fi
203203

204-
if [[ $RUBY = ruby-2.4* ]]; then
205-
EXTRA_CONFIGURE_OPTS=",--enable-install-static-library"
206-
fi
204+
CONFIGURE_OPTS_ARRAY=( --without-tcl --without-tk --without-gmp )
205+
206+
case $RUBY in
207+
ruby-2.4*|ruby-2.5*)
208+
CONFIGURE_OPTS_ARRAY+=( --enable-install-static-library );;
209+
esac
210+
211+
CONFIGURE_OPTS=$( IFS=','; echo "${CONFIGURE_OPTS_ARRAY[*]}" )
207212

208-
announce rvm install $RUBY $EXTRA_FLAGS --verify-downloads 1 $MOVABLE_FLAG --disable-install-doc -C --without-tcl,--without-tk,--without-gmp$EXTRA_CONFIGURE_OPTS;;
213+
announce rvm install $RUBY $EXTRA_FLAGS --verify-downloads 1 $MOVABLE_FLAG --disable-install-doc -C $CONFIGURE_OPTS;;
209214
jruby-head)
210215
update_mvn 3.3.9
211216
announce rvm install $RUBY --verify-downloads 1;;

0 commit comments

Comments
 (0)