Skip to content

macOS linker: @executable_path is not correctly resolved #15036

@michal-z

Description

@michal-z

Zig Version

0.11.0-dev.2160+49d37e2d1

Steps to Reproduce and Observed Behavior

git clone https://github.com/michal-z/zig-gamedev.git
cd zig-gamedev
zig build minimal_gl-run

Sample application uses rpath to load private framework like below:
exe.addRPath("@executable_path/Frameworks");

It looks like @executable_path is not resolved to the correct path.

Expected Behavior

Sample application works correctly (opens blue window).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorlinkingos-macosmacOS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions