aboutsummaryrefslogtreecommitdiffstats
path: root/win32/mkexports.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-11 11:45:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-11 11:45:32 +0000
commit18bd7f8c845e392995d738f3bca3675b7b265e23 (patch)
tree5d66fde62ed3c7bae9c790d9238a37f20bc465a2 /win32/mkexports.rb
parent536e266e58e6fda550e781d7a88317fdfe149cfa (diff)
downloadruby-18bd7f8c845e392995d738f3bca3675b7b265e23.tar.gz
* configure.in (SYMBOL_PREFIX): separate from EXPORT_PREFIX.
* win32/mkexports.rb (Exports#each_export): use SYMBOL_PREFIX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/mkexports.rb')
-rwxr-xr-xwin32/mkexports.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index f6d40f8cfb..06f8c8ddbb 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -143,9 +143,12 @@ class Exports::Cygwin < Exports
end
def each_export(objs)
+ symprefix = RbConfig::CONFIG["SYMBOL_PREFIX"]
+ symprefix.strip! if symprefix
+ re = /\s(?:(T)|[[:upper:]])\s#{symprefix}((?!Init_|.*_threadptr_|DllMain@).*)$/
objdump(objs) do |l|
next if /@.*@/ =~ l
- yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_((?!Init_|.*_threadptr_|DllMain@).*)$/ =~ l
+ yield $2, !$1 if re =~ l
end
end
end