diff options
author | Simon Ney <simon.ney@kommunikator-gmbh.com> | 2019-05-12 03:36:36 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-13 02:42:56 +0300 |
commit | 81170a9cbed4106cbb8129a5991ad52451d29275 (patch) | |
tree | 8922462b4482f560dd77e6e1a166836eaa14c010 | |
parent | 5ede0f5ef0ce5ec13e100e737be4ccbc66c3dc41 (diff) | |
download | meson-81170a9cbed4106cbb8129a5991ad52451d29275.zip meson-81170a9cbed4106cbb8129a5991ad52451d29275.tar.gz meson-81170a9cbed4106cbb8129a5991ad52451d29275.tar.bz2 |
This is the fork "sneyx1234/meson" of the current git "mesonbuild/meson" head to converge it to the solaris 11.4 platform based on the sparcv9 and i386 processor architecture.
The purpose is to complete the porting related to the fork "sneyx1234/ast" of "att/ast" the "AT&T kornshell".
-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' |