summaryrefslogtreecommitdiffstats
path: root/src/kdedistutils.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2012-11-01 20:41:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2012-11-01 20:45:43 +0100
commitb348c6c18dec64402a558e8c050dcc8466f80de2 (patch)
tree3fa88619d2755665ffde531327415439bbe4e7c4 /src/kdedistutils.py
parentd86f886f1319bd1fb02cc15b5b0c0c395046fe60 (diff)
downloadpytdeextensions-b348c6c18dec64402a558e8c050dcc8466f80de2.tar.gz
pytdeextensions-b348c6c18dec64402a558e8c050dcc8466f80de2.zip
Fix libgcc library detection
Fix QT directories detection Thanks to Francois Andriot (cherry picked from commit 6221fac26cd348251fb26a7c0c4bdf5e2f0886bd)
Diffstat (limited to 'src/kdedistutils.py')
-rw-r--r--src/kdedistutils.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/kdedistutils.py b/src/kdedistutils.py
index 0e87451..70a298e 100644
--- a/src/kdedistutils.py
+++ b/src/kdedistutils.py
@@ -564,6 +564,9 @@ class BuildKControlModule(Command):
# Qt inc dir
if self.qt_inc_dir is None:
canidatepaths = []
+ qtinc = os.getenv("QTINC")
+ if qtinc != None:
+ canidatepaths.append(qtinc)
qtdir = os.getenv("QTDIR")
if qtdir != None:
canidatepaths.append(os.path.join(qtdir,"include"))
@@ -585,6 +588,9 @@ class BuildKControlModule(Command):
# Qt lib dir
if self.qt_lib_dir is None:
canidatepaths = []
+ qtlib = os.getenv("QTLIB")
+ if qtlib != None:
+ canidatepaths.append(qtlib)
qtdir = os.getenv("QTDIR")
if qtdir != None:
canidatepaths.append(os.path.join(qtdir,get_libdir_name()))
@@ -634,7 +640,7 @@ class BuildKControlModule(Command):
# Find the C library (libgcc, libgcc_s or some other variation).
if self.clib is None:
- canidatepaths = ["/usr/"+get_libdir_name(), "/usr/local/"+get_libdir_name() ]
+ canidatepaths = ["/usr/"+get_libdir_name(), "/usr/local/"+get_libdir_name(), "/usr/lib" ]
self.clib = FindFileInPaths("libgcc*.so",canidatepaths)
if self.clib!=None:
self.clib = glob.glob(os.path.join(self.clib,'libgcc*.so'))[0]
@@ -1479,6 +1485,9 @@ class BuildKioslave(Command):
# Qt inc dir
if self.qt_inc_dir is None:
canidatepaths = []
+ qtinc = os.getenv("QTINC")
+ if qtinc != None:
+ canidatepaths.append(qtinc)
qtdir = os.getenv("QTDIR")
if qtdir != None:
canidatepaths.append(os.path.join(qtdir,"include"))
@@ -1499,6 +1508,9 @@ class BuildKioslave(Command):
# Qt lib dir
if self.qt_lib_dir is None:
canidatepaths = []
+ qtlib = os.getenv("QTLIB")
+ if qtlib != None:
+ canidatepaths.append(qtlib)
qtdir = os.getenv("QTDIR")
if qtdir != None:
canidatepaths.append(os.path.join(qtdir,get_libdir_name()))