| ... | @@ -1980,13 +1980,10 @@ pub const LibExeObjStep = struct { | ... | @@ -1980,13 +1980,10 @@ pub const LibExeObjStep = struct { |
| 1980 | try zig_args.append(other.getOutputPath()); | 1980 | try zig_args.append(other.getOutputPath()); |
| 1981 | }, | 1981 | }, |
| 1982 | .Lib => { | 1982 | .Lib => { |
| 1983 | if (!other.is_dynamic or self.target.isWindows()) { | 1983 | const full_path_lib = other.getOutputPath(); |
| 1984 | try zig_args.append(other.getOutputLibPath()); | 1984 | try zig_args.append(full_path_lib); |
| 1985 | } else { | | |
| 1986 | const full_path_lib = other.getOutputPath(); | | |
| 1987 | try zig_args.append("--library"); | | |
| 1988 | try zig_args.append(full_path_lib); | | |
| 1989 | | 1985 | |
| | 1986 | if (other.is_dynamic and !self.target.isWindows()) { |
| 1990 | if (fs.path.dirname(full_path_lib)) |dirname| { | 1987 | if (fs.path.dirname(full_path_lib)) |dirname| { |
| 1991 | try zig_args.append("-rpath"); | 1988 | try zig_args.append("-rpath"); |
| 1992 | try zig_args.append(dirname); | 1989 | try zig_args.append(dirname); |