summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Ross <tristan.ross@midstall.com>2024-07-30 18:50:19 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-09-24 10:25:12 -0700
commitf3daf6265aa412c2d54784100c8618e9008a2f9d (patch)
tree15ade9308f3c24b8f59de789802368521fd8dd01
parent798bf519035808aa4d86e6b58d7a6b3c5e4b2988 (diff)
downloadmeson-f3daf6265aa412c2d54784100c8618e9008a2f9d.tar.gz
linkers: Disable -rpath-link with ld.zigcc
Zig issue https://github.com/ziglang/zig/issues/18713
-rw-r--r--mesonbuild/linkers/linkers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index e401d7c9a..dc42b3a20 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -708,7 +708,9 @@ class GnuLikeDynamicLinkerMixin(DynamicLinkerBase):
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