diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-11-04 13:59:41 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-11-05 07:35:24 +0900 |
commit | 33d01b73442ba2e434122077ce6ffdc419d21940 (patch) | |
tree | 32ac1657084404035a32dccfc02e3a05d58a59f5 /lib | |
parent | 1506c8228b775776ce846e5cfdb6ce4b81963808 (diff) |
[rubygems/rubygems] Skip to set DESTDIR option when it's not provided for mswin platform
https://github.com/rubygems/rubygems/commit/b93546c8d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/ext/builder.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb index 7934309901..93c325328a 100644 --- a/lib/rubygems/ext/builder.rb +++ b/lib/rubygems/ext/builder.rb @@ -30,7 +30,8 @@ class Gem::Ext::Builder end make_program = Shellwords.split(make_program) - destdir = 'DESTDIR=%s' % ENV['DESTDIR'] + # The installation of the bundled gems is failed when DESTDIR is empty in mswin platform. + destdir = ENV['DESTDIR'] ? 'DESTDIR=%s' % ENV['DESTDIR'] : '' ['clean', '', 'install'].each do |target| # Pass DESTDIR via command line to override what's in MAKEFLAGS |