QtDependency: Only use -fPIC on Linux

It is enabled by default on OS X and on it doesn't make sense on
Windows.
pull/1210/head
Nirbheek Chauhan 8 years ago
parent 361ae8d22b
commit ef2c2eeed1
  1. 5
      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):

Loading…
Cancel
Save