10000 merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [Backport… · github/ruby@da86a99 · GitHub
[go: up one dir, main page]

Skip to content

Commit da86a99

Browse files
committed
merge revision(s) 2b6fc9e: [Backport #21092]
[Bug #21092] Fallback variables after execonf has done When reading from a dummy makefile, the global variables initialized in `init_mkmf` may not be overridden.
1 parent ac3f355 commit da86a99

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/extmk.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ def extmake(target, basedir = 'ext', maybestatic = true)
167167
$mdir = target
168168
$srcdir = File.join($top_srcdir, basedir, $mdir)
169169
$preload = nil
170-
$objs = []
171-
$srcs = []
172170
$extso = []
173171
makefile = "./Makefile"
174172
static = $static
@@ -202,7 +200,7 @@ def extmake(target, basedir = 'ext', maybestatic = true)
202200
begin
203201
$extconf_h = nil
204202
ok &&= extract_makefile(makefile)
205-
old_objs = $objs
203+
old_objs = $objs || []
206204
old_cleanfiles = $distcleanfiles | $cleanfiles
207205
conf = ["#{$srcdir}/makefile.rb", "#{$srcdir}/extconf.rb"].find {|f| File.exist?(f)}
208206
if (!ok || ($extconf_h && !File.exist?($extconf_h)) ||
@@ -265,6 +263,8 @@ def extmake(target, basedir = 'ext', maybestatic = true)
265263
unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
266264
args += ["DESTDIR=" + relative_from($destdir, "../"+prefix)]
267265
end
266+
$objs ||= []
267+
$srcs ||= []
268268
if $static and ok and !$objs.empty? and !noinstall
269269
args += ["static"]
270270
$extlist.push [(maybestatic ? $static : false), target, $target, $preload]

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
1212
#define RUBY_VERSION_TEENY 7
1313
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
14-
#define RUBY_PATCHLEVEL 129
14+
#define RUBY_PATCHLEVEL 130
1515

1616
#include "ruby/version.h"
1717
#include "ruby/internal/abi.h"

0 commit comments

Comments
 (0)
0