summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-18 23:38:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-18 23:38:16 +0000
commit07eead80713acee91fbca1c0c3bc33b5284eea31 (patch)
treef3bf8e28e2e0349efd8d7cfcfe62fc82cc9de004 /eval.c
parentb56724550db45600ce90507faaf05cf6a1ec9130 (diff)
* eval.c (search_required): handle static linked extensions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index b3cc629c27..73f04ce868 100644
--- a/eval.c
+++ b/eval.c
@@ -6916,6 +6916,9 @@ search_required(fname, path)
}
}
}
+ else if (!strchr(ftptr, '/')) {
+ if (rb_feature_p(ftptr, 0, Qfalse)) return 's';
+ }
tmp = fname;
type = rb_find_file_ext(&tmp, loadable_ext);
tmp = rb_file_expand_path(tmp, Qnil);