[Bug #21779] Uniquify InitVM functions as well as Init

Avoid possible name conflict when `--with-static-linked-ext`.
This commit is contained in:
Nobuyoshi Nakada 2025-12-14 00:32:50 +09:00
parent 01db5d71a8
commit bc2a8a002a
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-12-14 02:43:33 +00:00

View File

@ -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