File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ build_package() {
529
529
package_option () {
530
530
local package_name=" $1 "
531
531
local command_name=" $2 "
532
+ # e.g. RUBY_CONFIGURE_OPTS_ARRAY, OPENSSL_MAKE_OPTS_ARRAY
532
533
local variable=" $( capitalize " ${package_name} _${command_name} " ) _OPTS_ARRAY"
533
534
local array=" $variable [@]"
534
535
shift 2
@@ -650,18 +651,18 @@ build_package_ruby() {
650
651
build_package_ree_installer () {
651
652
build_package_auto_tcltk
652
653
653
- local options=" "
654
- is_mac && options= " --no-tcmalloc"
654
+ local options=()
655
+ is_mac && options+=( --no-tcmalloc)
655
656
656
657
local option
657
- for option in ${RUBY_CONFIGURE_OPTS_ARRAY[@]} $RUBY_CONFIGURE_OPTS ; do
658
- options= " $options -c $option "
658
+ for option in " ${RUBY_CONFIGURE_OPTS_ARRAY[@]} " $RUBY_CONFIGURE_OPTS ; do
659
+ options+=( -c " $option " )
659
660
done
660
661
661
662
# Work around install_useful_libraries crash with --dont-install-useful-gems
662
663
mkdir -p " $PREFIX_PATH /lib/ruby/gems/1.8/gems"
663
664
664
- { ./installer --auto " $PREFIX_PATH " --dont-install-useful-gems $ options $CONFIGURE_OPTS
665
+ { ./installer --auto " $PREFIX_PATH " --dont-install-useful-gems " ${ options[@]} " $CONFIGURE_OPTS
665
666
} >&4 2>&1
666
667
}
667
668
You can’t perform that action at this time.
0 commit comments