Ruby: fixed gem mount paths.
The gem paths must depend on the specified interpreter. Also, gemdir looks redundant as it's already included in Gem.default_path().
This commit is contained in:
parent
317fabc83e
commit
91280b4c0b
1 changed files with 2 additions and 4 deletions
|
@ -62,8 +62,8 @@ if /bin/sh -c "$NXT_RUBY -v" >> $NXT_AUTOCONF_ERR 2>&1; then
|
|||
NXT_RUBY_LIBDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubylibdir"]'`
|
||||
NXT_RUBY_TOPDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["topdir"]'`
|
||||
NXT_RUBY_PREFIXDIR=`$NXT_RUBY -rrbconfig -e 'print RbConfig::CONFIG["rubylibprefix"]'`
|
||||
NXT_RUBY_GEMDIR=`gem environment gemdir`
|
||||
NXT_RUBY_GEMPATH=`gem environment gempath`
|
||||
|
||||
NXT_RUBY_GEMPATH=`$NXT_RUBY -rrubygems -e 'print Gem.default_path().join(":")'`
|
||||
|
||||
NXT_RUBY_INCPATH="-I$NXT_RUBY_ARCHHDRDIR -I$NXT_RUBY_RUBYHDRDIR"
|
||||
|
||||
|
@ -163,8 +163,6 @@ static const nxt_fs_mount_t nxt_ruby_mounts[] = {
|
|||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
{(u_char *) "$NXT_RUBY_LIBDIR", (u_char *) "$NXT_RUBY_LIBDIR",
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
{(u_char *) "$NXT_RUBY_GEMDIR", (u_char *) "$NXT_RUBY_GEMDIR",
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
{(u_char *) "$NXT_RUBY_TOPDIR", (u_char *) "$NXT_RUBY_TOPDIR",
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
{(u_char *) "$NXT_RUBY_PREFIXDIR", (u_char *) "$NXT_RUBY_PREFIXDIR",
|
||||
|
|
Loading…
Reference in a new issue