Skip to content

Commit

Permalink
Explicitly ignored empty value for DESTDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Nov 4, 2021
1 parent b93546c commit 69dcc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/ext/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.make(dest_path, results, make_dir = Dir.pwd)
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
Expand Down

0 comments on commit 69dcc02

Please sign in to comment.