summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-05 14:12:27 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-05 14:12:27 +0000
commita26972d26f38e6c023a955a1073c2801cbf6357b (patch)
treeec2281cba2b787bb3c94d4e4892736216edca78c /lib/mkmf.rb
parent70fa7705dc9ec7ca7807971a4312923555deccb0 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 38b93f5..c042561 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -352,9 +352,10 @@ def create_makefile(target)
defflag = ''
if RUBY_PLATFORM =~ /cygwin|mingw/
- if File.exist? target + ".def"
- defflag = "--def=" + target + ".def"
+ open(target + '.def', 'wb') do |f|
+ f.print "EXPORTS\n", "Init_", target, "\n"
end
+ defflag = "--def=" + target + ".def"
end
unless $objs then