From b94ecb23834c8691629ec364bf57d5db7d3c456e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 9 Apr 2010 18:45:33 +0000 Subject: [PATCH] Added support for single-thread boost --- configure | 10 ++++++++++ qcm/libboost.qcm | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/configure b/configure index 274376dff..c1e4f4220 100755 --- a/configure +++ b/configure @@ -407,6 +407,16 @@ public: name = result.first().mid(3); // Remove .so name.chop(3); + } else { + // Fall back to non -mt boost lib + filters.clear(); + filters << "libboost_"+lib+"*.so"; + result = libDir.entryList(filters, QDir::Files); + if(!result.empty()) { + name = result.first().mid(3); + // Remove .so + name.chop(3); + } } return name; } diff --git a/qcm/libboost.qcm b/qcm/libboost.qcm index b5573c9c7..418efe841 100644 --- a/qcm/libboost.qcm +++ b/qcm/libboost.qcm @@ -22,6 +22,16 @@ public: name = result.first().mid(3); // Remove .so name.chop(3); + } else { + // Fall back to non -mt boost lib + filters.clear(); + filters << "libboost_"+lib+"*.so"; + result = libDir.entryList(filters, QDir::Files); + if(!result.empty()) { + name = result.first().mid(3); + // Remove .so + name.chop(3); + } } return name; }