diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-17 09:38:10 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-17 09:38:10 +0000 |
| commit | 5008f85e0564e76f379bc07b7f30f7efc8e02d2a (patch) | |
| tree | f79b454b1c6352c12dae4915f0e136c228d71a9f /ext | |
| parent | eb0970089c9874da15f8adc6e0a719fc0b131e5b (diff) | |
| download | ruby-5008f85e0564e76f379bc07b7f30f7efc8e02d2a.tar.gz ruby-5008f85e0564e76f379bc07b7f30f7efc8e02d2a.tar.xz ruby-5008f85e0564e76f379bc07b7f30f7efc8e02d2a.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index 4ac7b4ee9..dc5eddfab 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -404,6 +404,10 @@ archdir = $(pkglibdir)/@arch@ f.sub!(/(#{SRC_EXT.join(%q{|})})$/, $OBJEXT) $objs.push f end + else + for i in $objs + i.sub!(/\.o\z/, ".#{$OBJEXT}") + end end mfile.printf $objs.join(" ") mfile.printf "\n" @@ -485,7 +489,7 @@ $(DLLIB): $(OBJS) dfile = open("#{$srcdir}/depend", "r") mfile.printf "###\n" while line = dfile.gets() - line.gsub!(/\.o/, ".#{$OBJEXT}") + line.gsub!(/\.o\b/, ".#{$OBJEXT}") mfile.printf "%s", line.gsub('\$\(hdrdir\)/config.h', '$(topdir)/config.h') end dfile.close |
