8000 Make rbconfig.rb loadable from exe/ruby · github/ruby@f6e9899 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6e9899

Browse files
committed
Make rbconfig.rb loadable from exe/ruby
So that it can run without `--disable=gems` option.
1 parent 8c03bda commit f6e9899

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ $(PLATFORM_D):
10451045
$(Q) $(MAKEDIRS) $(PLATFORM_DIR) $(@D)
10461046
@$(NULLCMD) > $@
10471047

1048+
exe/$(PROGRAM): $(TIMESTAMPDIR)/$(arch)/.time
10481049
exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time $(PREP) {$(VPATH)}config.h
10491050
$(Q) $(CC) $(CFLAGS) $(INCFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(COUTFLAG)ruby-runner.$(OBJEXT) -c $(CSRCFLAG)$(srcdir)/ruby-runner.c
10501051
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(LDFLAGS) $(OUTFLAG)$@ ruby-runner.$(OBJEXT) $(LIBS)
@@ -1057,6 +1058,8 @@ exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time $(PREP) {$(VPATH)}config.h
10571058
-e ' File.symlink(prog, dest)' \
10581059
-e 'end' \
10591060
$(@F) $(@D) $(RUBY_INSTALL_NAME)$(EXEEXT)
1061+
$(Q) $(BOOTSTRAPRUBY) -r$(srcdir)/lib/fileutils \
1062+
-e 'FileUtils::Verbose.ln_sr(*ARGV, force: true)' rbconfig.rb $(EXTOUT)/$(arch)
10601063

10611064
exe/.time:
10621065
$(Q) $(MAKEDIRS) $(@D)

0 commit comments

Comments
 (0)
0