diff options
author | Eric Bénard <eric@eukrea.com> | 2012-01-25 18:22:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-01 15:07:42 +0000 |
commit | 37d93b9818f37bca8720655fbea28b5cb0577457 (patch) | |
tree | c1985856193ade3fcb34233d1566214bf4126845 /meta/recipes-qt/qt4/qt4-tools-nativesdk.inc | |
parent | 9123e9eb9bf324e5cc45b535934583b0e37f378b (diff) | |
download | poky-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.inc | 10 |
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" | |||
4 | HOMEPAGE = "http://qt.nokia.com" | 4 | HOMEPAGE = "http://qt.nokia.com" |
5 | LICENSE = "LGPLv2.1 | GPLv3" | 5 | LICENSE = "LGPLv2.1 | GPLv3" |
6 | 6 | ||
7 | INC_PR = "r7" | 7 | INC_PR = "r8" |
8 | 8 | ||
9 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:" | 9 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt-${PV}:" |
10 | 10 | ||
@@ -12,7 +12,6 @@ inherit nativesdk qmake2 | |||
12 | 12 | ||
13 | SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \ | 13 | SRC_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} \ | |||
51 | EXTRA_OEMAKE = " " | 50 | EXTRA_OEMAKE = " " |
52 | 51 | ||
53 | do_configure() { | 52 | do_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 | ||