aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-20 07:52:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-20 07:52:10 +0000
commitb528172ebaa284f26fca5f3bc8ea3044d0263d21 (patch)
tree755788352cfb760f7a7992661b3d5fb7853495e9 /lib/mkmf.rb
parent20e7e86030e0e74e52aa24a50545a6789a3f90f2 (diff)
downloadruby-b528172ebaa284f26fca5f3bc8ea3044d0263d21.tar.gz
* lib/mkmf.rb (MakeMakefile#configuration): DESTDIR should never affect
top_srcdir and builddir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 044d72777a..0f588a56ee 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1915,7 +1915,7 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
next if /^abs_/ =~ key
next if /^(?:src|top|hdr)dir$/ =~ key
next unless /dir$/ =~ key
- mk << "#{key} = #{with_destdir(var)}\n"
+ mk << "#{key} = #{/^(?:top_src|build)dir$/ =~ key ? var : with_destdir(var)}\n"
end
if !$extmk and !$configure_args.has_key?('--ruby') and
sep = config_string('BUILD_FILE_SEPARATOR')