aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/linkers.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r--mesonbuild/linkers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 371220b..3251845 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -573,6 +573,9 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
def get_std_shared_module_args(self, options: 'OptionDictType') -> typing.List[str]:
return ['-bundle'] + self._apply_prefix('-undefined,dynamic_lookup')
+ def get_pie_args(self) -> typing.List[str]:
+ return ['-pie']
+
def get_link_whole_for(self, args: typing.List[str]) -> typing.List[str]:
result = [] # type: typing.List[str]
for a in args: