diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-18 13:40:50 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-18 13:40:50 +0530 |
commit | ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9 (patch) | |
tree | 4e90f435a25584a5a0326e735bca4e702078d6e3 | |
parent | 361ae8d22b762e627a0bad6a6ce8dd7a0def2dd4 (diff) | |
download | meson-ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9.zip meson-ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9.tar.gz meson-ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9.tar.bz2 |
QtDependency: Only use -fPIC on Linux
It is enabled by default on OS X and on it doesn't make sense on
Windows.
-rw-r--r-- | mesonbuild/dependencies.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py index 183835d..9ef1649 100644 --- a/mesonbuild/dependencies.py +++ b/mesonbuild/dependencies.py @@ -1029,8 +1029,9 @@ class QtBaseDependency(Dependency): # 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 ['-fPIC'] + if mesonlib.is_linux(): + return ['-fPIC'] + return [] class Qt5Dependency(QtBaseDependency): def __init__(self, env, kwargs): |