diff options
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index a4d4c571b2..3b40772bf3 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -381,8 +381,10 @@ def create_makefile(target) defflag = '' if RUBY_PLATFORM =~ /cygwin|mingw/ and not $static - open(target + '.def', 'wb') do |f| - f.print "EXPORTS\n", "Init_", target, "\n" + if not File.exist? target + '.def' + open(target + '.def', 'wb') do |f| + f.print "EXPORTS\n", "Init_", target, "\n" + end end defflag = "--def=" + target + ".def" end |