Files
packages/anda/langs/zig/0000-remove-native-lib-directories-from-rpath.patch
T
Raboneko a575999eb6 feat(zig-master): Fix build commands for future bootstrapping, port Fedora patches (#4427) (#4433)
* feat(zig-master): Bootstrap build



* chore: Bump release



* Fix up the docs build flag



* fix: zig_build_options macro



* fix: Don't self-bootstrap for now



* Update zig-master.spec



* Add files via upload



* feat: Port all applicable Fedora patches

* Oops



* fix: Add back that space



* chore: Changelog



---------


(cherry picked from commit aae75fdddb)

Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
2025-04-26 01:04:31 +08:00

19 lines
791 B
Diff

--- a/src/main.zig 2025-04-25 06:01:31.337458939 -0500
+++ b/src/main.zig 2025-04-25 06:03:02.239473385 -0500
@@ -4072,6 +4072,15 @@
try create_module.lib_directories.ensureUnusedCapacity(arena, paths.lib_dirs.items.len);
for (paths.lib_dirs.items) |path| addLibDirectoryWarn2(&create_module.lib_directories, path, true);
+
+ for (paths.lib_dirs.items) |native_lib_dir| {
+ for (0.., create_module.rpath_list.items) |i, rpath_dir| {
+ if (std.mem.eql(u8, native_lib_dir, rpath_dir)) {
+ _ = create_module.rpath_list.orderedRemove(i);
+ break;
+ }
+ }
+ }
}
if (create_module.libc_paths_file) |paths_file| {