summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/extmk.rb.in2
-rw-r--r--lib/mkmf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index a47fbed9a52..b93781658fc 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -149,7 +149,7 @@ def install_rb(mfile, srcdir = nil)
next unless /\.rb$/ =~ f
f = f[libdir.length+1..-1]
path.push f
- dir |= File.dirname(f)
+ dir |= [File.dirname(f)]
end
end
for f in dir
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index e7d47558b20..80fcac4ad07 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -134,7 +134,7 @@ def install_rb(mfile, dest, srcdir = nil)
next unless /\.rb$/ =~ f
f = f[libdir.length+1..-1]
path.push f
- dir |= File.dirname(f)
+ dir |= [File.dirname(f)]
end
end
for f in dir