Open karlseguin opened 1 year ago
Isn't this by design?
We have addRPathSpecial(...)
for explicitly adding $ORIGIN
(Linux) and $rpath/@executable_path/@loader_path
(MacOS):
https://github.com/ziglang/zig/blob/master/lib/std/Build/Module.zig#L583
There is a problem with assuming that relative paths should end up being either of the options as they have subtle differences.
Zig Version
0.11.0-dev.3295+7cb2e653a
Steps to Reproduce and Observed Behavior
zig init-exe
zig build
build-exe
works as expected:Expected Behavior
The relative path should be preserved. build-exe and build.zig should be consistent with each other.