mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[Bug #21779] Uniquify InitVM functions as well as Init
Avoid possible name conflict when `--with-static-linked-ext`.
This commit is contained in:
parent
01db5d71a8
commit
bc2a8a002a
Notes:
git
2025-12-14 02:43:33 +00:00
@ -559,6 +559,7 @@ extend Module.new {
|
||||
if $static and (target = args.first).include?("/")
|
||||
base = File.basename(target)
|
||||
$defs << "-DInit_#{base}=Init_#{target.tr('/', '_')}"
|
||||
$defs << "-DInitVM_#{base}=InitVM_#{target.tr('/', '_')}"
|
||||
end
|
||||
return super
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user