| ... | @@ -1487,6 +1487,7 @@ pub const LibExeObjStep = struct { | ... | @@ -1487,6 +1487,7 @@ pub const LibExeObjStep = struct { |
| 1487 | libc_file: ?FileSource = null, | 1487 | libc_file: ?FileSource = null, |
| 1488 | | 1488 | |
| 1489 | valgrind_support: ?bool = null, | 1489 | valgrind_support: ?bool = null, |
| | 1490 | each_lib_rpath: ?bool = null, |
| 1490 | | 1491 | |
| 1491 | /// Create a .eh_frame_hdr section and a PT_GNU_EH_FRAME segment in the ELF | 1492 | /// Create a .eh_frame_hdr section and a PT_GNU_EH_FRAME segment in the ELF |
| 1492 | /// file. | 1493 | /// file. |
| ... | @@ -2681,6 +2682,14 @@ pub const LibExeObjStep = struct { | ... | @@ -2681,6 +2682,14 @@ pub const LibExeObjStep = struct { |
| 2681 | } | 2682 | } |
| 2682 | } | 2683 | } |
| 2683 | | 2684 | |
| | 2685 | if (self.each_lib_rpath) |each_lib_rpath| { |
| | 2686 | if (each_lib_rpath) { |
| | 2687 | try zig_args.append("-feach-lib-rpath"); |
| | 2688 | } else { |
| | 2689 | try zig_args.append("-fno-each-lib-rpath"); |
| | 2690 | } |
| | 2691 | } |
| | 2692 | |
| 2684 | if (self.override_lib_dir) |dir| { | 2693 | if (self.override_lib_dir) |dir| { |
| 2685 | try zig_args.append("--zig-lib-dir"); | 2694 | try zig_args.append("--zig-lib-dir"); |
| 2686 | try zig_args.append(builder.pathFromRoot(dir)); | 2695 | try zig_args.append(builder.pathFromRoot(dir)); |