diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-03 09:12:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-03 09:12:59 +0000 |
commit | 48ebea719f4478245a90352cfbfd5146ce65ca9e (patch) | |
tree | f1c41010370d3071e85827a22e5bb7718f934789 /lib | |
parent | 48b19a3a759e85a7dfaad10f8b18e594447fbc36 (diff) | |
download | ruby-48ebea719f4478245a90352cfbfd5146ce65ca9e.tar.gz |
mkmf.rb: revert DESTDIR prefix
* lib/mkmf.rb (install_dirs): revert DESTDIR prefix by r39841, since
it is fixed by r41648. [ruby-core:55760] [Bug #8115]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 8179974034..751e190dfa 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -199,21 +199,21 @@ module MakeMakefile ] elsif $configure_args.has_key?('--vendor') dirs = [ - ['BINDIR', '$(DESTDIR)$(bindir)'], - ['RUBYCOMMONDIR', '$(DESTDIR)$(vendordir)$(target_prefix)'], - ['RUBYLIBDIR', '$(DESTDIR)$(vendorlibdir)$(target_prefix)'], - ['RUBYARCHDIR', '$(DESTDIR)$(vendorarchdir)$(target_prefix)'], - ['HDRDIR', '$(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)'], - ['ARCHHDRDIR', '$(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], + ['BINDIR', '$(bindir)'], + ['RUBYCOMMONDIR', '$(vendordir)$(target_prefix)'], + ['RUBYLIBDIR', '$(vendorlibdir)$(target_prefix)'], + ['RUBYARCHDIR', '$(vendorarchdir)$(target_prefix)'], + ['HDRDIR', '$(rubyhdrdir)/ruby$(target_prefix)'], + ['ARCHHDRDIR', '$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], ] else dirs = [ - ['BINDIR', '$(DESTDIR)$(bindir)'], - ['RUBYCOMMONDIR', '$(DESTDIR)$(sitedir)$(target_prefix)'], - ['RUBYLIBDIR', '$(DESTDIR)$(sitelibdir)$(target_prefix)'], - ['RUBYARCHDIR', '$(DESTDIR)$(sitearchdir)$(target_prefix)'], - ['HDRDIR', '$(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)'], - ['ARCHHDRDIR', '$(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], + ['BINDIR', '$(bindir)'], + ['RUBYCOMMONDIR', '$(sitedir)$(target_prefix)'], + ['RUBYLIBDIR', '$(sitelibdir)$(target_prefix)'], + ['RUBYARCHDIR', '$(sitearchdir)$(target_prefix)'], + ['HDRDIR', '$(rubyhdrdir)/ruby$(target_prefix)'], + ['ARCHHDRDIR', '$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'], ] end dirs << ['target_prefix', (target_prefix ? "/#{target_prefix}" : "")] @@ -1770,7 +1770,6 @@ SRC # :stopdoc: def with_destdir(dir) - return dir unless $extmk dir = dir.sub($dest_prefix_pattern, '') /\A\$[\(\{]/ =~ dir ? dir : "$(DESTDIR)"+dir end |