diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb.in | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 71614c8b83..ab1b78a4cd 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -27,11 +27,9 @@ $extlist = [] $libdir = "@libdir@" -$top_srcdir = "@top_srcdir@" -if $top_srcdir !~ ("^" + File::SEPARATOR) - # get absolute path - $top_srcdir = File.expand_path($top_srcdir) -end +# get absolute path +$top_srcdir = File.expand_path("@top_srcdir@") + # get absolute path $topdir = File.expand_path("..") @@ -539,7 +537,7 @@ EOS mfile.printf "\n" unless /mswin32/ =~ RUBY_PLATFORM - if /bccwin32/=~ RUBY_PLATFORM + if /bccwin32/ =~ RUBY_PLATFORM src = '$(<:\\=/)' else src = '$<' |