diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-05-22 00:18:30 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-05-22 00:18:30 +0300 |
commit | 23700b7e4bc437a553d30b36d96c853acb8b6965 (patch) | |
tree | 9b5c823988328f9310f21525df471d10e5f006a1 /dependencies.py | |
parent | ff51f2196f39da034151b54da3088c0d70ae4eee (diff) | |
download | meson-23700b7e4bc437a553d30b36d96c853acb8b6965.zip meson-23700b7e4bc437a553d30b36d96c853acb8b6965.tar.gz meson-23700b7e4bc437a553d30b36d96c853acb8b6965.tar.bz2 |
Use -fPIC instead of -fPIE as it seems to be the new requirement. Closes #124.
Diffstat (limited to 'dependencies.py')
-rw-r--r-- | dependencies.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dependencies.py b/dependencies.py index b1532f5..f1ce117 100644 --- a/dependencies.py +++ b/dependencies.py @@ -688,9 +688,14 @@ class Qt5Dependency(Dependency): return self.is_found def get_exe_args(self): - # Qt5 seems to require this always. + # Originally this was -fPIE but nowadays the default + # for upstream and distros seems to be -reduce-relocations + # which requires -fPIC. This may cause a performance + # penalty when using self-built Qt or on platforms + # where -fPIC is not required. If this is an issue + # for you, patches are welcome. # Fix this to be more portable, especially to MSVC. - return ['-fPIE'] + return ['-fPIC'] class Qt4Dependency(Dependency): def __init__(self, kwargs): |