diff options
author | Raphael Graf <r@undefined.ch> | 2019-06-05 10:10:49 +0200 |
---|---|---|
committer | Raphael Graf <r@undefined.ch> | 2019-06-05 10:10:49 +0200 |
commit | 68e54f7b59295797d844c28da1772e6ae24f08bb (patch) | |
tree | 05f48bfc721caa348c13c4884a2b74e5c76c0094 /build | |
parent | 0f7481247cc23ff8b0746807bfc3719e33639412 (diff) |
Fix the checks for bsd platform
Diffstat (limited to 'build')
-rw-r--r-- | build/depends.py | 2 | ||||
-rw-r--r-- | build/qt5.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/build/depends.py b/build/depends.py index 5a034d21c6..51a4ae6f9b 100644 --- a/build/depends.py +++ b/build/depends.py @@ -209,7 +209,7 @@ class Qt(Dependence): def find_framework_libdir(qtdir): # Try pkg-config on Linux import sys - if sys.platform.startswith('linux') or sys.platform.find('bsd'): + if sys.platform.startswith('linux') or sys.platform.find('bsd') >= 0: if any(os.access(os.path.join(path, 'pkg-config'), os.X_OK) for path in os.environ["PATH"].split(os.pathsep)): import subprocess try: diff --git a/build/qt5.py b/build/qt5.py index 30adc4067e..90a9422780 100644 --- a/build/qt5.py +++ b/build/qt5.py @@ -936,7 +936,7 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, staticdeps= except: pass debugSuffix = '' if (sys.platform.startswith("linux") or sys.platform.startswith("darwin") or - sys.platform.find("bsd")) and not crosscompiling : + sys.platform.find("bsd") >= 0) and not crosscompiling : if debug : debugSuffix = '_debug' # Call _find_qtdirs with QtCore to get at least one initialized for later usage with RPATH qt_dirs = _find_qtdirs("$QT5DIR","QtCore") |