diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-06 11:58:44 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-06 11:58:44 +0000 |
commit | a6fac6a669135a33f263d16b033db47ff5b5e070 (patch) | |
tree | a38de484527b4d067b0705e56098c45615d8071f /lib/mkmf.rb | |
parent | 10284a049af43112881d658abacaa32900ed0d0e (diff) | |
download | ruby-a6fac6a669135a33f263d16b033db47ff5b5e070.tar.gz |
* lib/mkmf.rb (create_makefile): ignore rest from first dot from
TARGET to generate init function name.
this is followup of r30464.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index a4388862a3..0b39551033 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1895,7 +1895,7 @@ def create_makefile(target, srcprefix = nil) makedef = %{-pe "$_.sub!(/^(?=\\w)/,'#{EXPORT_PREFIX}') unless 1../^EXPORTS$/i"} end else - makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}Init_$(TARGET)'"} + makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}' + 'Init_$(TARGET)'.sub(/\\..*\\z/,'')"} end if makedef $cleanfiles << '$(DEFFILE)' |