[rubygems/rubygems] Explicitly ignored empty value for DESTDIR

https://github.com/rubygems/rubygems/commit/69dcc02553
This commit is contained in:
Hiroshi SHIBATA 2021-11-04 14:10:59 +09:00 коммит произвёл git
Родитель 33d01b7344
Коммит 16331d9abb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -31,7 +31,7 @@ class Gem::Ext::Builder
make_program = Shellwords.split(make_program)
# The installation of the bundled gems is failed when DESTDIR is empty in mswin platform.
destdir = ENV['DESTDIR'] ? 'DESTDIR=%s' % ENV['DESTDIR'] : ''
destdir = (ENV['DESTDIR'] && ENV['DESTDIR'] != "") ? 'DESTDIR=%s' % ENV['DESTDIR'] : ''
['clean', '', 'install'].each do |target|
# Pass DESTDIR via command line to override what's in MAKEFLAGS