diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-02-28 15:06:44 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-02-28 15:06:44 +0900 |
| commit | 98fc456891c0dbf3b4bccdb7a89d05d485cd0b2a (patch) | |
| tree | c1952908398bad05ce804263f50902978dc0fc57 | |
| parent | 9e5d68f03f6800b0ccde3bee32ac1789a1d0dc14 (diff) | |
merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [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.
---
ext/extmk.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
| -rwxr-xr-x | ext/extmk.rb | 6 | ||||
| -rw-r--r-- | version.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index c9881a4b0e..4e77a7167b 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -171,8 +171,6 @@ def extmake(target, basedir = 'ext', maybestatic = true) $mdir = target $srcdir = File.join($top_srcdir, basedir, $mdir) $preload = nil - $objs = [] - $srcs = [] $extso = [] makefile = "./Makefile" static = $static @@ -206,7 +204,7 @@ def extmake(target, basedir = 'ext', maybestatic = true) begin $extconf_h = nil ok &&= extract_makefile(makefile) - old_objs = $objs + old_objs = $objs || [] old_cleanfiles = $distcleanfiles | $cleanfiles conf = ["#{$srcdir}/makefile.rb", "#{$srcdir}/extconf.rb"].find {|f| File.exist?(f)} if (!ok || ($extconf_h && !File.exist?($extconf_h)) || @@ -269,6 +267,8 @@ def extmake(target, basedir = 'ext', maybestatic = true) unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR") args += ["DESTDIR=" + relative_from($destdir, "../"+prefix)] end + $objs ||= [] + $srcs ||= [] if $static and ok and !$objs.empty? and !noinstall args += ["static"] $extlist.push [(maybestatic ? $static : false), target, $target, $preload] @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 7 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 253 +#define RUBY_PATCHLEVEL 254 #include "ruby/version.h" #include "ruby/internal/abi.h" |
