diff options
author | Mihai Moldovan <ionic@ionic.de> | 2019-11-29 03:45:46 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-11-29 08:11:06 -0800 |
commit | 2c4a08ee56b77b14a33b7959a5b3ae02a40057cf (patch) | |
tree | 7d88248c4d570a8f042b3f725d5022f84dcf9257 /mesonbuild/linkers.py | |
parent | b33830f99e95596a5afa23d00970443c6d47909f (diff) | |
download | meson-2c4a08ee56b77b14a33b7959a5b3ae02a40057cf.zip meson-2c4a08ee56b77b14a33b7959a5b3ae02a40057cf.tar.gz meson-2c4a08ee56b77b14a33b7959a5b3ae02a40057cf.tar.bz2 |
linkers: AppleDynamicLinker supports -pie.
The linker implementation split up introduced a regression: since the
AppleDynamicLinker subclass doesn't expose PIE support, builds using
that feature just plainly fail.
Add back support for it using the default and supported -pie flag.
Diffstat (limited to 'mesonbuild/linkers.py')
-rw-r--r-- | mesonbuild/linkers.py | 3 |
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: |