aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 6034547f5a..b80d829001 100644
--- a/common.mk
+++ b/common.mk
@@ -4,7 +4,8 @@ dll: $(LIBRUBY_SO)
.SUFFIXES: .inc
-RUBYOPT =
+RUBYLIB = -
+RUBYOPT = -rpurelib.rb
STATIC_RUBY = static-ruby
@@ -114,6 +115,9 @@ all: $(MKFILES) $(PREP) incs $(RBCONFIG) $(LIBRUBY) encs
@$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" $(EXTMK_ARGS)
prog: $(PROGRAM) $(WPROGRAM)
+loadpath: $(PREP)
+ $(MINIRUBY) -e 'p $$:'
+
$(PREP): $(MKFILES)
miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE)