Skip to content

Commit dd6aa84

Browse files
committed
Use absolute path for rpath extension to find installed dynamic lib
1 parent 9348e35 commit dd6aa84

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
@@ -520,7 +520,7 @@ pub fn add(
520520
const artifact: *std.Build.Step.InstallArtifact = b.addInstallArtifact(sharedLib, .{});
521521
b.getInstallStep().dependOn(&artifact.step);
522522
// Lookup dynamic libs from installed location
523-
step.root_module.addRPathSpecial("$ORIGIN/../lib/");
523+
step.root_module.addRPathSpecial(b.getInstallPath(artifact.dest_dir.?, ""));
524524
step.linkLibrary(sharedLib);
525525
}
526526

0 commit comments

Comments
 (0)