summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-01-25 18:22:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-01 15:07:42 +0000
commit37d93b9818f37bca8720655fbea28b5cb0577457 (patch)
treec1985856193ade3fcb34233d1566214bf4126845 /meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
parent9123e9eb9bf324e5cc45b535934583b0e37f378b (diff)
downloadpoky-37d93b9818f37bca8720655fbea28b5cb0577457.tar.gz
qt4-tools-nativesdk-4.8.0: fix build
the build is actually failing because host g++ and ld are used to compile and link (From OE-Core rev: 4ccae37db1aa77a1d15098c3720ea6e2d383fbdc) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4/qt4-tools-nativesdk.inc')
-rw-r--r--meta/recipes-qt/qt4/qt4-tools-nativesdk.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
index 275fdcc68c..4b097cf4d9 100644
--- a/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
+++ b/meta/recipes-qt/qt4/qt4-tools-nativesdk.inc
@@ -4,7 +4,7 @@ SECTION = "libs"
4HOMEPAGE = "http://qt.nokia.com" 4HOMEPAGE = "http://qt.nokia.com"
5LICENSE = "LGPLv2.1 | GPLv3" 5LICENSE = "LGPLv2.1 | GPLv3"
6 6
7INC_PR = "r7" 7INC_PR = "r8"
8 8
9FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:" 9FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:"
10 10
@@ -12,7 +12,6 @@ inherit nativesdk qmake2
12 12
13SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ 13SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
14 file://configure-lflags.patch \ 14 file://configure-lflags.patch \
15 file://compile.test-lflags.patch \
16 file://qt-config.patch \ 15 file://qt-config.patch \
17 file://qmake-exists-check.patch \ 16 file://qmake-exists-check.patch \
18 file://configure-paths.patch \ 17 file://configure-paths.patch \
@@ -51,12 +50,18 @@ EXTRA_OECONF = "-prefix ${prefix} \
51EXTRA_OEMAKE = " " 50EXTRA_OEMAKE = " "
52 51
53do_configure() { 52do_configure() {
53 # Avoid problems with Qt 4.8.0 configure setting QMAKE_LINK from LD (since we want the linker to be g++)
54 unset LD
55
54 if [ ! -e mkspecs/${TARGET_OS}-oe-g++ ]; then 56 if [ ! -e mkspecs/${TARGET_OS}-oe-g++ ]; then
55 ln -sf linux-g++ mkspecs/${TARGET_OS}-oe-g++ 57 ln -sf linux-g++ mkspecs/${TARGET_OS}-oe-g++
56 fi 58 fi
57 59
58 cp ../g++.conf mkspecs/common 60 cp ../g++.conf mkspecs/common
59 cp ../linux.conf mkspecs/common 61 cp ../linux.conf mkspecs/common
62 # don't use host g++ even during configure
63 sed -i -e "s#g++#${CXX}#" mkspecs/common/g++-base.conf
64 sed -i -e "s#gcc#${CC}#" mkspecs/common/g++-base.conf
60 65
61 # first launch configure to get qmake compiled for the nativesdk 66 # first launch configure to get qmake compiled for the nativesdk
62 (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || true 67 (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || true
@@ -66,7 +71,6 @@ do_configure() {
66 if [ ! -e bin/qmake ]; then 71 if [ ! -e bin/qmake ]; then
67 ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake 72 ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake
68 fi 73 fi
69
70 (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" 74 (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
71} 75}
72 76