diff options
-rw-r--r-- | mesonbuild/compilers/compilers.py | 3 | ||||
-rw-r--r-- | mesonbuild/mesonlib.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index a3401e8..bafb023 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1307,6 +1307,9 @@ class Compiler: paths = paths + ':' + padding args.append('-Wl,-rpath,' + paths) + if mesonlib.is_sunos(): + return args + if get_compiler_is_linuxlike(self): # Rpaths to use while linking must be absolute. These are not # written to the binary. Needed only with GNU ld: diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index f78fa35..07beb69 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -344,6 +344,9 @@ class PerMachine(typing.Generic[_T]): }[machine] setattr(self, key, val) +def is_sunos() -> bool: + return platform.system().lower() == 'sunos' + def is_osx() -> bool: return platform.system().lower() == 'darwin' |