Skip to content

Commit 8a9ed09

Browse files
committed
Use absolute path for rpath extension to find installed dynamic lib
1 parent 0a7795c commit 8a9ed09

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
@@ -653,7 +653,7 @@ fn addGTK(
653653
const artifact: *std.Build.Step.InstallArtifact = b.addInstallArtifact(sharedLib, .{});
654654
b.getInstallStep().dependOn(&artifact.step);
655655
// Lookup dynamic libs from installed location
656-
step.root_module.addRPathSpecial("$ORIGIN/../lib/");
656+
step.root_module.addRPathSpecial(b.getInstallPath(artifact.dest_dir.?, ""));
657657
step.linkLibrary(sharedLib);
658658
}
659659
}

0 commit comments

Comments
 (0)