| ... | @@ -1636,7 +1636,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node) !v | ... | @@ -1636,7 +1636,7 @@ fn linkWithLLD(self: *Elf, comp: *Compilation, prog_node: *std.Progress.Node) !v |
| 1636 | } | 1636 | } |
| 1637 | for (self.base.options.objects) |obj| { | 1637 | for (self.base.options.objects) |obj| { |
| 1638 | if (Compilation.classifyFileExt(obj.path) == .shared_library) { | 1638 | if (Compilation.classifyFileExt(obj.path) == .shared_library) { |
| 1639 | const lib_dir_path = std.fs.path.dirname(obj.path).?; | 1639 | const lib_dir_path = std.fs.path.dirname(obj.path) orelse continue; |
| 1640 | if ((try rpath_table.fetchPut(lib_dir_path, {})) == null) { | 1640 | if ((try rpath_table.fetchPut(lib_dir_path, {})) == null) { |
| 1641 | try argv.append("-rpath"); | 1641 | try argv.append("-rpath"); |
| 1642 | try argv.append(lib_dir_path); | 1642 | try argv.append(lib_dir_path); |