From d0b3651906aa943423e430a61437a42f7dd39422 Mon Sep 17 00:00:00 2001 From: H_Konishi Date: Tue, 11 Jun 2002 01:27:48 +0000 Subject: new platform [bccwin32] merged. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/dl/extconf.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ext/dl/extconf.rb') diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb index 7b7c48f1a2..46b3c6c87d 100644 --- a/ext/dl/extconf.rb +++ b/ext/dl/extconf.rb @@ -176,6 +176,21 @@ $INSTALLFILES = [ ["dl.h", "$(archdir)$(target_prefix)", ""], ] +if /bccwin32/ =~ RUBY_PLATFORM + srcdir = $top_srcdir + "/ext/dl/" + if !FileTest.exist?( srcdir+"dl.def.org" ) + File.copy( srcdir+"dl.def", srcdir+"dl.def.org" ) + open( srcdir+"dl.def.org" ){ |f| + open( "dl.def", "w" ) { |g| + g.print f.gets + while line = f.gets + g.print "_", line + end + } + } + end +end + create_makefile('dl') rescue SystemExit # do nothing -- cgit v1.2.3