diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-08-29 17:42:49 +0900 |
---|---|---|
committer | usa <usa@garbagecollect.jp> | 2022-09-16 15:11:08 +0900 |
commit | 31bc55dc90aa18222d5ed968e62fea4d46554d8c (patch) | |
tree | 7f1e6c062387afbef3340575f2a177511c8901aa /ext | |
parent | c9c2245c0a25176072e02db9254f0e0c84c805cd (diff) |
Backport https://github.com/ruby/ruby/pull/6193
Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/extmk.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 80a0a1208d..97f1ad9c39 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -408,8 +408,10 @@ if CROSS_COMPILING $ruby = $mflags.defined?("MINIRUBY") || CONFIG['MINIRUBY'] elsif sep = config_string('BUILD_FILE_SEPARATOR') $ruby = "$(topdir:/=#{sep})#{sep}miniruby" + EXEEXT -else +elsif CONFIG['EXTSTATIC'] $ruby = '$(topdir)/miniruby' + EXEEXT +else + $ruby = '$(topdir)/ruby' + EXEEXT end $ruby = [$ruby] $ruby << "-I'$(topdir)'" @@ -421,6 +423,7 @@ end topruby = $ruby $ruby = topruby.join(' ') $mflags << "ruby=#$ruby" +$builtruby = '$(topdir)/miniruby' + EXEEXT # Must be an executable path MTIMES = [__FILE__, 'rbconfig.rb', srcdir+'/lib/mkmf.rb'].collect {|f| File.mtime(f)} |