SolarisDynamicLinker: add get_asneeded_args() & get_pie_args()

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
pull/7370/head
Alan Coopersmith 4 years ago
parent e4330eff6d
commit 28d1bb9016
  1. 7
      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']

Loading…
Cancel
Save