summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-17 09:38:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-17 09:38:10 +0000
commit448e63d627bf3653da0b3dc0dcf93e161829dc71 (patch)
treef79b454b1c6352c12dae4915f0e136c228d71a9f /lib/mkmf.rb
parent23dd3051c06c781b3905c993fd8fc1b3ccff6b81 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index c042561..cab2b76 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -365,6 +365,10 @@ def create_makefile(target)
f.sub!(/(#{SRC_EXT.join(%q{|})})$/, $OBJEXT)
$objs.push f
end
+ else
+ for i in $objs
+ i.sub!(/\.o\z/, ".#{$OBJEXT}")
+ end
end
$objs = $objs.join(" ")
@@ -459,7 +463,7 @@ EOMF
dfile = open("depend", "r")
mfile.printf "###\n"
while line = dfile.gets()
- mfile.printf "%s", line.gsub(/\.o/, ".#{$OBJEXT}")
+ mfile.printf "%s", line.gsub(/\.o\b/, ".#{$OBJEXT}")
end
dfile.close
end