summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 21:30:54 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-22 21:30:54 (GMT)
commit66d4bdd114e2bed46b4da84894793e331e7e90e0 (patch)
tree549c03dce546b1a5f06ff39f921dfd8a0c4f899c /version.c
parenta97c07fb2e70c2076c2da3def4a0da361540d4bd (diff)
* configure.in (SITE_DIR, VENDOR_DIR),
version.c (ruby_initial_load_paths): exclude directories that are configured without them from $LOAD_PATH. [ruby-core:33267] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/version.c b/version.c
index c007470..9cf37af 100644
--- a/version.c
+++ b/version.c
@@ -69,19 +69,23 @@ const char ruby_initial_load_paths[] =
#ifdef RUBY_SEARCH_PATH
RUBY_SEARCH_PATH "\0"
#endif
+#ifndef NO_RUBY_SITE_LIB
RUBY_SITE_LIB2 "\0"
#ifdef RUBY_SITE_THIN_ARCHLIB
RUBY_SITE_THIN_ARCHLIB "\0"
#endif
RUBY_SITE_ARCHLIB "\0"
RUBY_SITE_LIB "\0"
+#endif
+#ifndef NO_RUBY_VENDOR_LIB
RUBY_VENDOR_LIB2 "\0"
#ifdef RUBY_VENDOR_THIN_ARCHLIB
RUBY_VENDOR_THIN_ARCHLIB "\0"
#endif
RUBY_VENDOR_ARCHLIB "\0"
RUBY_VENDOR_LIB "\0"
+#endif
RUBY_LIB "\0"
#ifdef RUBY_THIN_ARCHLIB