summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
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
commit99f9ac64a7099ba31c00e0c23bcfad0f27fc9ec0 (patch)
tree67cccc86ac54a748eb0fb2d9fd9da0494a01614d /ext/extmk.rb
parent1427f340b1c1805f179136c0921099e14b2ee63c (diff)
downloadruby-99f9ac64a7099ba31c00e0c23bcfad0f27fc9ec0.tar.gz
* ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 5cd7f498cc..b0bc9f3c4f 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)