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 authored and dcbaker committed Sep 24, 2024
1 parent 798bf51 commit f3daf62
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 @@ -708,7 +708,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 f3daf62

Please sign in to comment.