summaryrefslogtreecommitdiff
path: root/ext/extmk.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r--ext/extmk.rb.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 4ac7b4ee9b7..dc5eddfab8b 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