diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-06-21 08:39:51 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-06-22 15:02:19 -0700 |
commit | 28d1bb90162931a5fcce7470b22c622b903e6dca (patch) | |
tree | 043daec1ec75269262e7bfd2b5f6b64d3c61f6c1 | |
parent | e4330eff6d340e1a2990f1f0ef7a2e328866ce05 (diff) | |
download | meson-28d1bb90162931a5fcce7470b22c622b903e6dca.zip meson-28d1bb90162931a5fcce7470b22c622b903e6dca.tar.gz meson-28d1bb90162931a5fcce7470b22c622b903e6dca.tar.bz2 |
SolarisDynamicLinker: add get_asneeded_args() & get_pie_args()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | mesonbuild/linkers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index 805bbc7..4264e7d 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -1098,6 +1098,13 @@ class SolarisDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): return args return self._apply_prefix('--whole-archive') + args + self._apply_prefix('--no-whole-archive') + def get_pie_args(self) -> T.List[str]: + # Available in Solaris 11.2 and later + return ['-z', 'type=pie'] + + def get_asneeded_args(self) -> T.List[str]: + return self._apply_prefix(['-z', 'ignore']) + def no_undefined_args(self) -> T.List[str]: return ['-z', 'defs'] |