Bug #3761 ยป export-symbols-for-dll-under-64bits.patch
win32/mkexports.rb | ||
---|---|---|
class Exports::Mingw32 < Exports::Cygwin
|
||
def each_export(objs)
|
||
super
|
||
yield "strcasecmp", "_stricmp"
|
||
yield "strncasecmp", "_strnicmp"
|
||
end
|
||
end
|
||
class Exports::Mingw64 < Exports::Cygwin
|
||
def each_export(objs)
|
||
objdump(objs) do |l|
|
||
next if /@.*@/ =~ l
|
||
yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_?((?!Init_|.*_threadptr_|DllMain[@\n]).*)$/ =~ l
|