summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-17 15:03:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-17 15:03:19 +0000
commit4d56c1de6f32cd8c03425ee947942a80cf86a9bc (patch)
tree471a365495e512b6c6c5007581e08c67c47e3d78 /ext
parentf64c02a830cd3233221f2b10026fa30d3d1d067b (diff)
* ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index ef060c5dd1..5badcc755f 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -480,6 +480,9 @@ Dir.chdir ".."
unless $destdir.to_s.empty?
$mflags.defined?("DESTDIR") or $mflags << "DESTDIR=#{$destdir}"
end
+unless $extlist.empty?
+ rm_f(Config::CONFIG["LIBRUBY_SO"])
+end
puts "making #{rubies.join(', ')}"
$stdout.flush
$mflags.concat(rubies)