From ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 18 Dec 2016 13:40:50 +0530 Subject: QtDependency: Only use -fPIC on Linux It is enabled by default on OS X and on it doesn't make sense on Windows. --- mesonbuild/dependencies.py | 5 +++-- 1 file 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): -- cgit v1.1