Skip to content

Commit 27bc1af

Browse files
committed
Use absolute path for rpath extension to find installed dynamic lib
1 parent 439045a commit 27bc1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/SharedDeps.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ fn addGTK(
658658
const artifact: *std.Build.Step.InstallArtifact = b.addInstallArtifact(sharedLib, .{});
659659
b.getInstallStep().dependOn(&artifact.step);
660660
// Lookup dynamic libs from installed location
661-
step.root_module.addRPathSpecial("$ORIGIN/../lib/");
661+
step.root_module.addRPathSpecial(b.getInstallPath(artifact.dest_dir.?, ""));
662662
step.linkLibrary(sharedLib);
663663
}
664664
}

0 commit comments

Comments
 (0)