From f3daf6265aa412c2d54784100c8618e9008a2f9d Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Tue, 30 Jul 2024 18:50:19 -0700 Subject: linkers: Disable -rpath-link with ld.zigcc Zig issue https://github.com/ziglang/zig/issues/18713 --- mesonbuild/linkers/linkers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3