Skip to content

Commit

Permalink
linkers: Disable -rpath-link with ld.zigcc
Browse files Browse the repository at this point in the history
  • Loading branch information
RossComputerGuy committed Jul 31, 2024
1 parent a51be6b commit d4c501a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mesonbuild/linkers/linkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,9 @@ def build_rpath_args(self, env: 'Environment', build_dir: str, from_dir: str,
args.extend(self._apply_prefix('-rpath,' + paths))

# TODO: should this actually be "for solaris/sunos"?
if mesonlib.is_sunos():
# NOTE: Remove the zigcc check once zig support "-rpath-link"
# See https://github.com/ziglang/zig/issues/18713
if mesonlib.is_sunos() or self.id == 'ld.zigcc':
return (args, rpath_dirs_to_remove)

# Rpaths to use while linking must be absolute. These are not
Expand Down

0 comments on commit d4c501a

Please sign in to comment.