diff options
author | Roman Bolshakov <r.bolshakov@yadro.com> | 2020-10-02 00:35:38 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-04 20:16:49 +0300 |
commit | 30a102d9a3d4594bb757b28e5b6796e327393eef (patch) | |
tree | 681013f19545d80d6d6ab6e62a3afde2a9cd41f5 | |
parent | 962ea8053b2113c2ea8372ed27476bf73119bd65 (diff) | |
download | meson-30a102d9a3d4594bb757b28e5b6796e327393eef.zip meson-30a102d9a3d4594bb757b28e5b6796e327393eef.tar.gz meson-30a102d9a3d4594bb757b28e5b6796e327393eef.tar.bz2 |
linkers: Drop -pie on macOS
Projects that specify b_pie=true clutter build logs with the warning:
clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
No option is needed to produce PIE binaries because ld64 is making PIE
executables on 10.7 and above by default, as documented in ld(1).
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
-rw-r--r-- | mesonbuild/linkers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py index ad5a4f5..589945c 100644 --- a/mesonbuild/linkers.py +++ b/mesonbuild/linkers.py @@ -676,7 +676,7 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): return ['-bundle'] + self._apply_prefix('-undefined,dynamic_lookup') def get_pie_args(self) -> T.List[str]: - return ['-pie'] + return [] def get_link_whole_for(self, args: T.List[str]) -> T.List[str]: result = [] # type: T.List[str] |