diff options
author | axis <qt-info@nokia.com> | 2011-01-28 09:27:33 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2011-01-28 12:25:20 (GMT) |
commit | 63c02607744fd5431132c6ea4f44380e6e20e12f (patch) | |
tree | c5d412391a2b6b4cd04a6ecd227daaa3b5a7ae05 /mkspecs | |
parent | 3f00eed4c329670bf10640c43467cd122347e0d2 (diff) | |
download | Qt-63c02607744fd5431132c6ea4f44380e6e20e12f.zip Qt-63c02607744fd5431132c6ea4f44380e6e20e12f.tar.gz Qt-63c02607744fd5431132c6ea4f44380e6e20e12f.tar.bz2 |
Fixed GCCE libdir handling if the paths have spaces in them.
RevBy: Trust me
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/symbian-gcce/qmake.conf | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mkspecs/symbian-gcce/qmake.conf b/mkspecs/symbian-gcce/qmake.conf index a31e6e4..3992681 100644 --- a/mkspecs/symbian-gcce/qmake.conf +++ b/mkspecs/symbian-gcce/qmake.conf @@ -72,16 +72,16 @@ QMAKE_LFLAGS += --target1-abs \ QMAKE_LIBDIR += $${EPOCROOT}epoc32/release/armv5/udeb/ # g++ knows the path to the gcc-shipped-libs, ld doesn't. So cache the full path in the generate Makefile -QMAKE_GCC_SEARCH_DIRS =$$system($$QMAKE_CXX -print-search-dirs) -for(line, QMAKE_GCC_SEARCH_DIRS) { - contains(line, "libraries:") { - foundIt="1" - } else { - contains(foundIt, "1") { - QMAKE_LFLAGS += $$replace(line, "[=:]", " -L") - } - } +QMAKE_GCC_SEARCH_DIRS = $$system($$QMAKE_CXX -print-search-dirs) +QMAKE_GCC_SEARCH_DIRS = "$$join(QMAKE_GCC_SEARCH_DIRS, " ")" +QMAKE_GCC_SEARCH_DIRS = $$replace(QMAKE_GCC_SEARCH_DIRS, ".*libraries: *", "") +QMAKE_GCC_SEARCH_DIRS = $$replace(QMAKE_GCC_SEARCH_DIRS, "=", "") +contains(QMAKE_HOST.os,Windows) { + QMAKE_GCC_SEARCH_DIRS = $$split(QMAKE_GCC_SEARCH_DIRS, ;) +} else { + QMAKE_GCC_SEARCH_DIRS = $$split(QMAKE_GCC_SEARCH_DIRS, :) } +for(line, QMAKE_GCC_SEARCH_DIRS):QMAKE_LIBDIR += $$line QMAKE_LIBDIR += $${EPOCROOT}epoc32/release/armv5/lib |