From 9b0d5163100887c9183e64f5e696d62f271a4690 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 21 Oct 2023 19:42:26 +0900 Subject: [PATCH] Fixed `MRuby::Build#define_installer` Symbolic links were created with absolute paths, but to cope with path fluctuations between build and reference, they are now relative paths. ref. #6084 --- lib/mruby/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb index 9dff12cfd..c4bb910b2 100644 --- a/lib/mruby/build.rb +++ b/lib/mruby/build.rb @@ -397,7 +397,7 @@ EOS dst = "#{self.class.install_dir}/#{File.basename(src)}" define_installer_outline(src, dst) do File.unlink(dst) rescue nil - File.symlink(File.expand_path(src), dst) + File.symlink(src.relative_path_from(self.class.install_dir), dst) end end end