Do not expand empty DESTDIR

This commit is contained in:
Nobuyoshi Nakada 2025-01-15 22:10:40 +09:00
parent 2599ac38cd
commit 22feb02066
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -150,7 +150,7 @@ def parse_args(argv = ARGV)
end end
$destdir ||= $mflags.defined?("DESTDIR") $destdir ||= $mflags.defined?("DESTDIR")
$destdir = File.expand_path($destdir) if $destdir $destdir = File.expand_path($destdir) unless $destdir.empty?
if $extout ||= $mflags.defined?("EXTOUT") if $extout ||= $mflags.defined?("EXTOUT")
RbConfig.expand($extout) RbConfig.expand($extout)
end end